How Can I Optimize a Webpage Packed with Text for Better Performance?

0
2
Asked By QuestingNinja42 On

I'm a hobbyist working on a passion project that centers around the dialogue from an MMORPG. Currently, the project has over 1.7 million words and is about 17MB in size, which some users find hard to load. I want to keep everything on a single webpage for easy searching, but I'm exploring ways to improve performance. I'm already minifying the text to save some file size. I'm curious if using AJAX for loading content could be a good solution, or if there are other strategies I might have overlooked. Any tips or suggestions would be welcome!

2 Answers

Answered By TechGuru99 On

Definitely consider using AJAX to load the content in smaller segments. This can help with performance by pulling data as users scroll down the page. You might also want to enable gzip compression for further reduction. Just curious, is the 17MB compressed or uncompressed?

QuestingNinja42 -

It's 17MB uncompressed but around 15MB when compressed. I'll enable gzip through my hosting panel.

Answered By InfoSeeker21 On

Another option is implementing infinite scrolling for the text. You could also create a PDF version for those who want the entire document at once.

CuriousCat77 -

Quick question—does a PDF typically perform better than a webpage with the same content?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.