Robert Granlund
asked on
WordPress Lazy Load Plugins
WordPress. Is there a way to "Lazy Load" Plugins in WordPress without using another plugin? I have one plugin that takes up a lot of resources and am interested in defering it.
I don't know about plug ins, but files in general I am using autoptimize
@Scott your link point to a wp-admin so need credentials to open it
Lazy Load only provides usefulness if you're running a very old Webserver using HTTP/1.1 protocol.
For HTTP/2, all objects begin serving sharing the same connection, so this accomplishes what Lazy Load use to be required to accomplish.
Before you invest time trying to find a Lazy Load plugin that works (many are badly broken + testing shows they fail badly), check your HTTP protocol version. If you're using HTTP/2 then there no requirement for a Lazy Load plugin.
Aside: If you're using many jpeg images on your site, take a look at the mozjpeg project for highest compression of large jpeg images.
For HTTP/2, all objects begin serving sharing the same connection, so this accomplishes what Lazy Load use to be required to accomplish.
Before you invest time trying to find a Lazy Load plugin that works (many are badly broken + testing shows they fail badly), check your HTTP protocol version. If you're using HTTP/2 then there no requirement for a Lazy Load plugin.
Aside: If you're using many jpeg images on your site, take a look at the mozjpeg project for highest compression of large jpeg images.
what about loadign this script after the other using javascript ?
<script>
jQuery(function() { // too soon ? replace this line by jQuery(window).load(function() {
jQuery.getScript("/path/to/lazy/script.js", function() {
// init something hrer
});
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.