3 ms·
The 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
by henryboldi 12y ago
The 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!!!