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.
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