Lazyload, Preload, and More!

Lazyload, Preload, and More!

Wordpress plugin

Install on Wordpress

App Details

A drop dead simple and lightweight image, iframe, and video optimization plugin to satisfy Google PageSpeed Insights, Lighthouse, and overall user experience.

This tiny little plugin (around 14kb zipped) will automatically

  • lazyload your below the fold images/iframes/videos,
  • preload your featured images (should also works well with WooCommerce product featured image),
  • add loading=”eager” to your featured image and all images that have no-lazy or skip-lazy class.
  • add missing image dimension to images that doesn’t have width and height attribute

Features

  • Lazy Load:
    • Images, iframes, and videos.
    • Inline background images.
    • CSS background image (simply put lazyload class to the background image container)
  • Preload Featured Images
    Automatically preloading featured image from common page/post (homepage, pages except homepage, single post, and WooCommerce single product pages)
  • Add loading=”eager” attribute to to your featured image and all images that have no-lazy or skip-lazy class.
  • Add missing image dimension to images that doesn’t have width and height attribute [since 1.0.3]

Should works well with all page builders and theme builders. This plugin also able to lazy loading WooCommerce images and preloading WooCommerce product featured images.

Disclaimer

  • Lazy load feature are using Lazysizes library (around 3kb, gzipped and minified).
  • This plugin doesn’t add anything to your database since there’s no settings and options. Everything will automatically activated after you activate the plugin.
  • You can change some default settings using filter.
  • This plugin is the simplified version of Optimize More! – Images, if you don’t want to use filters and need to control the settings with UI, you can try that plugin instead of this one.

About Lazysizes

Lazysizes is highly performant lazy load library, written by Alexander Farkas in pure JS with no dependencies.

Taken from lazysize’s github description:
High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.

Filters

Example filter to add extra lazyload exclude list:

add_filter( 'lpam_extra_exclude_list', function($lpam_extra_exclude_list) { return array( 'my-logo', 'my-hero-img', 'exclude-lazy' ); } ); 

Example filter to change lazysizes config (Read the docs):

add_filter( 'lpam_lazysizes_js_before', function($lpam_lazysizes_js_before) { return 'window.lazySizesConfig = { expand: 500, threshold: 500 };' } ); 

Example filter to change the image sizes for preload featured image:

add_filter( 'lpam_preload_featured_images_image_size', function($image_size, $post) { if ( is_singular( 'post' ) ) { return 'large'; } elseif ( is_singular( 'product' ) ) { return 'full'; } else { return $image_size; } }, 10, 2 ); 

[new since 1.0.2] Example to disable the preload featured image feature in certain page-type:

add_filter('disable_featured_image_preload', function ($disable) { if ( is_singular( 'post' ) ) { return true; } }); 

[new since 1.0.3] Example to disable adding image dimension in certain page-type:

add_filter('disable_img_dimension', function ($disable) { if ( is_singular( 'post' ) ) { return true; } }); 

[new since 1.0.3] Example to disable this plugin completely in certain page using url:

add_filter('lazy_load_excluded_pages', function ($excludedPages) { $excludedPages[] = '/page-1'; $excludedPages[] = '/page-2'; return $excludedPages; }); 

[new since 1.0.3] Example to disable this plugin completely in certain page using page ID:

add_filter('lazy_load_excluded_page_ids', function ($excludedPageIDs) { $excludedPageIDs[] = 3678; // Exclude page with ID 1 $excludedPageIDs[] = 3615; // Exclude page with ID 2 return $excludedPageIDs; }); 

[new since 1.0.4] To disable the tag:

add_filter('disable_noscript', '__return_true'); 

 

USEFUL PLUGINS TO OPTIMIZE YOUR SITE’S SPEED:

  • Optimize More!: A Do It Yourself WordPress Optimization Plugin that give you the ability to:

    • Load CSS Asynchronously – selectively load CSS file(s) asynchronously on selected post/page types.

    • Delay CSS and JS until User Interaction – selectively delay CSS/JS load until user interaction on selected post/page types.

    • Preload Critical CSS, JS, and Font Files – selectively preload critical CSS/JS/Font file(s) on selected post/page types.

    • Remove Unused CSS and JS Files – selectively remove unused CSS/JS file(s) on selected post/page types.

    • Defer JS – selectively defer loading JavaScript file(s) on selected post/page types.

    • Advance Defer JS – hold JavaScripts load until everything else has been loaded. Adapted from the legendary varvy’s defer js method *recommended for defer loading 3rd party scripts like ads, pixels, and trackers

    • Load Gutenberg CSS conditionally

    • Remove Passive Listener Warnings

    • and many more

Other USEFUL PLUGIN:

  • Shop Extra – A lightweight plugin to optimize your WooCommerce & Business site that makes you able to:

    • add Floating WhatsApp Chat Widget (can be use without WooCommerce),
    • add WhatsApp Order Button for WooCommrece,
    • Hide/Disable WooCommerce Elements,
    • WooCommerce Strings Translations,
    • and many more.
  • Animate on Scroll – Animate any Elements on scroll using the popular AOS JS library simply by adding class names. This plugin helps you integrate easily with AOS JS library to add any AOS animations to WordPress. Simply add the desired AOS animation to your element class name with “aos-” prefix and the plugin will add the corresponding aos attribute to the element tag.

Optimize More!

Need to optimize more? Try my WordPress Page Speed Optimization’s Service.

Pricing

Starting from $0 per month.

Check Out the Coupon Popup Widget

By Common Ninja

Coupon PopupTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

core web vitals
lazy load
lazyload
pagespeed

Developed By

Arya Dhiratara

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Coupon Popup for Wordpress logo

Coupon Popup

Use a coupon popup to highlight special offers, capture email leads, reduce cart abandonment, and turn more visitors into paying customers.

App Store Reviews for Wordpress logo

App Store Reviews

Show Apple App Store reviews to build trust, strengthen credibility, and help visitors make confident download decisions that support app growth.

All In One Chat for Wordpress logo

All In One Chat

Add a unified chat tool to your site that connects users via WhatsApp, Messenger, Telegram, or email for seamless support.

Interactive Video Player for Wordpress logo

Interactive Video Player

Add interactive video overlays with links, product cards, and buttons that appear on top of your videos to boost engagement and guide user actions.

Card Builder for Wordpress logo

Card Builder

Add customizable content cards to your site to display structured information clearly with flexible layout and design options.

Notification Bar for Wordpress logo

Notification Bar

Use a notification bar to alert users, highlight offers, and drive clicks that boost engagement, signups, and conversions.

Bluesky Feed Carousel for Wordpress logo

Bluesky Feed Carousel

Display Bluesky posts with a Bluesky feed carousel that auto updates, shows posts in a clear layout, and keeps visitors engaged.

Capterra Reviews for Wordpress logo

Capterra Reviews

Show Capterra reviews to build trust, strengthen credibility, and help visitors make confident software buying decisions that support higher sales.

Comments for Wordpress logo

Comments

Add a comments system with replies, voting, and moderation to boost engagement and build an active community on your site.

Etsy Reviews for Wordpress logo

Etsy Reviews

Show Etsy reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions that support higher sales.

Payment Button for Wordpress logo

Payment Button

Use a payment button for secure PayPal or Stripe checkout to simplify online payments and help increase sales.

Telegram Chat for Wordpress logo

Telegram Chat

Add Telegram Chat to your site to communicate with visitors, deliver instant support, and provide a smoother, more reliable user experience.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms