Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to pass prefetched html #72

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

finnvoor
Copy link
Contributor

Hi!

This package looks great and fits my needs, however I am using this in parallel with code I wrote to fetch the title/description from the HTML and wanted to optimize network usage. This PR adds an optional configuration for passing prefetchedHTML, a SwiftSoup Document that has already been fetched. This removes 1-2 unnecessary network requests if you already have fetched a page.

Ideally the fetched data in HTMLFaviconFinder would be reused in WebApplicationManifestFaviconFinder even when prefetchedHTML isn't specified to reduce 1 network call, but I couldn't find a simple way to add that.

@will-lumley
Copy link
Owner

will-lumley commented Apr 18, 2024

This is a great idea, thank you! I'll go over this later tonight.

@will-lumley will-lumley merged commit d9d4398 into will-lumley:main Apr 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants