3 ms·
Website is really slow on Firefox 32 (on Ubuntu), it's like trying to run Atom. After that, hopefully it remains responsive. Maybe add a limit to how much data
by giancarlostoro 12y ago
Website is really slow on Firefox 32 (on Ubuntu), it's like trying to run Atom. After that, hopefully it remains responsive. Maybe add a limit to how much data is shown right away? like 5 posts, then load the rest as people scroll down? Duno, feels like too many posts are being downloaded at once.
- henryboldi 12y agoThe site is definitely too slow. Thanks for the tip! I'm going to reduce the number of posts downloaded and then also lazy load the images.. hopefully that will help.
- krapp 12y agoAre you getting all of the posts as a single JSON object? It might also speed things up to make multiple small requests to the API (one per post) and handle it asynchronously. That wouldn't be something you could do quickly, though. Also maybe don't even call linkify.js until an item loads (you can set custom event handlers for dynamically generated elements in jQuery[0]) - I don't know if you're already doing this or not. Fewer posts per page would probably help too. [0]https://stackoverflow.com/questions/12065329/jquery-adding-event-listeners-to-dynamically-added-elements https://stackoverflow.com/questions/12065329/jquery-adding-e...
- henryboldi 12y agoYes, I'm getting 15 posts as a single JSON object. I'm going to try these things. Thanks for the help!!!