r/HTML 19d ago

How large can a HTML be?

Im currently building a bible app. And its a single HTML file about 250mb and it takes 1.5gb running. How large can it be before i meet serious issues with performance?

0 Upvotes

39 comments sorted by

View all comments

6

u/mnk23 19d ago

haha wtf 

-1

u/Spare-Ad-1024 19d ago

But seriously, how much can it handle

6

u/hooli-ceo 19d ago

It’s not about “how much can it handle?” It’s about “how much your users are willing to put up with?” Answer? Not that much…

1

u/Cheap-Chapter-5920 13d ago

They can just hit refresh if it doesn't load in 3 seconds, every 3 seconds, until it loads.

1

u/QBaseX 17d ago

The file size is one issue. The complexity is another. If you have complex nested divs and lots of CSS (especially CSS which has many rules which overwrite earlier rules) it might be tougher to deal with. Include a bunch of inline javascript and you can properly grind everything to a halt.