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
14.3k stars 945 forks source link

Reddit pages are 60 MB - 90 MB #1387

Open gitressa opened 4 months ago

gitressa commented 4 months ago

Describe the bug Thanks for a great add-on, it's really nice to have.

To Reproduce Steps to reproduce the behavior:

  1. Go to a Reddit page
  2. Save the page
  3. See that it is 50-90 MB

Expected behavior I would expect it to be 2-3 MB.

Environment

gildas-lormeau commented 4 months ago

Unfortunately, for some reasons I cannot explain, the developers decided to inline and duplicate all the stylesheets in the new version of Reddit and it inevitably leads to this kind of result. For example, https://www.reddit.com/r/webdev/ contains more than 600 stylesheets. For the moment I don't see how I can get around this problem, apart from saving pages while logged in on Reddit.

gitressa commented 4 months ago

Thanks for a fast answer. It also happens when you are logged in.

iG8R commented 4 months ago

Same issue here... it is incomprehensible how 1 page can be ~90MB...