Skip to content

Conversation

brettp
Copy link

@brettp brettp commented Aug 27, 2025

This prevents SVGs with xlink:href/href fragments to inlined symbols in the same document from resolving to the full page URL. This addresses an unintended consequence of #435 that results in inflated file size on some sites, the most obvious culprit being allrecipes.com.

This should also address some of the reports in karakeep-app/karakeep#770

Here are a few examples with default options showing significant reduction in archive size by about 96% with identical rendering (sometimes improved, as the browser will give up if the archive is too large):

URL v2.10.1 PR
Bourbon Carrot Cake 252M 9.5M
Quick Pasta Sauce 326M 11M
World's Best Lasagna 487M 15M

@brettp
Copy link
Author

brettp commented Sep 3, 2025

@snshn - This PR is ready for review. Is there anyone else who should be involved to get this merged?

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.

1 participant