javascript - How can I load all my site menu and other textual content first and then load images in wordpress? -
i using wordpress create website. when load page , check network tab, images taking long load, decreases website speed.
so possible load other content, menu,page headings etc. , load images ?
basically want improve website performance.
what want called "lazy loading" of images.
lazy loading means images loaded "on-demand" rather load initial load of page, make initial page load speed faster if have many images, or few big images.
you write stand-alone javascript implementation.
but since using wordpress, recommend wordpress plug-in , compatible wordpress right out-of-the-box.
here 1 option i've found using quick google search:
https://wordpress.org/plugins/lazy-load
you need download plug-in, install on wordpress , activate (and might need follow instructions).
plugin installation instruction: https://wordpress.org/plugins/lazy-load/installation/
plugin faq(with code): https://wordpress.org/plugins/lazy-load/faq/
regarding lazy loading of content , menus, possible , concept similar (loading resources after initial page load complete), if no wordpress plug-in exists (i sure there handful), can simple javascript using ajax.
hope helps bit
Comments
Post a Comment