Optimization of blog home page loading


Major bugs

From just doing a good job on this blog is not the first time to find out, when launching ajax requests, you can see that the content-download time is actually longer than the waiting time, and the home page waiting time can reach several seconds, truly slow, put a picture to prove that.

You can see that almost all the time of ajax requests is wasted in content-download, generally speaking, the loading time should be on waiting, not download, I never know how to optimize

Last week, I checked the data of ajax requests, and the data of each blog loaded on the home page actually carries the markdown field and html field of the upper blog post, the sheer volume of data of these two fields is not ordinary. So I know why content-download keeps taking so much time to start rendering the page

This is a major bug!!!

Immediately went back and changed it over, the ajax requested on the home page is paged blog data and should not return the blog post field. Changed the backend to query paginated data to remove these two fields and it looks, well ~ much faster

From here it is linked to the return of individual ajax data, if a field is very large and does not need to be used in the current page, it is best not to return it, lest the page takes too long to load and the experience is not good

The other pages of this blog are optimized for each ajax request, so it's clear what to pass and what not to pass~

Related Links

Previously blogged about this:- Page Performance Optimization

Blog address.https://ainyi.com/#/62


Recommended>>
1、Genesis Issues ICO Water Token Intended to Clean Up Sewage or a Variant of Bitcoin
2、International International SEO to use hreflang markers to indicate which version to search engines to display
3、Where is the future taking people as blockchain adoption accelerates Silver Chain Atomic Chain
4、Describing those indescribable relations using Python Stata ECharts below
5、Russia Completes First 12M Commercial Bond Transaction via Blockchain

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号