php - How to fix "Eliminate render-blocking JavaScript and CSS in above-the-fold content in Magento -
i have minified js , css , optimized images. used async="async" in js applicable. how fix "eliminate render-blocking javascript , css in above-the-fold content"
any ideas?
render means loading, if render-blocking, means keeping page loading could.
1) load css in headers js in footer
2) use sprite images
3) can add htaccess code for better performance
- gzip compression
- set expires , cache-control headers
- browser cache-control
4) load required css/js on pages
choose best method once you’ve identified scripts need moved time decide “how” fix them. there 2 main methods choose from. first make scripts inlined; in method contents of script added directly html of page , loaded once needed. best option if script small , applies single page.
another option defer script. when defer javascript delaying non-essential scripts loading until after first render or until after more essential portions have loaded. method best when script not crucial , can wait load.
ps:- can not resolve in cases.
i hope it's helpful you
Comments
Post a Comment