gildas-lormeau / SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file
GNU Affero General Public License v3.0
15.24k stars 999 forks source link

About unused CSS and hidden Elements #1579

Open BloodlineL opened 1 week ago

BloodlineL commented 1 week ago

When the selector contains :has or :not, even if no elements are matched, it will not be removed. Another question is why some hidden elements are nested instead of just saving the top level. 2024-09-28_22-16-15

gildas-lormeau commented 3 days ago

Thank you. In fact, for this option, the aim is not really for SingleFile to be 100% efficient but to remove most of hidden elements without breaking the layout. I agree that optimizations would be desirable though.