You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an option in SingleFile to compress the HTML content, the option is activated by default to remove unnecessary content without changing the appearance of the document, reducing the file size:
However, the option does not work on certain pages, keeping several unnecessary attributes in the source code elements, such as:
It seems that in general, custom attributes are not removed, leaving the file unnecessarily larger.
The elements you've highlighted are attributes, not tags. This is why they are not removed. Removing unused attributes is not implemented in SingleFile. I also think it's a bit difficult to implement.
gildas-lormeau
changed the title
SingleFile fails to remove unnecessary tags from elements
Option "HTML > remove unused attributes"
Sep 16, 2024
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The page has unnecessary attributes removed, and the file size is smaller.
Environment
The text was updated successfully, but these errors were encountered: