Linux 软件免费装
Banner图

Optimize More! - Images

开发者 aryadhiratara
thinkwebdev
更新时间 2023年5月21日 23:24
PHP版本: 7.4 及以上
WordPress版本: 6.2
版权: GPLv2 or later
版权网址: 版权信息

标签

performance image lazyload lazy load pagespeed core web vitals preload web vitals

下载

1.0.1 1.0.9 1.1.1 1.1.2 1.1.3 1.0.7 1.0.5 1.1.0

详情介绍:

A lightweight yet powerful image, iframe, and video optimization plugin. Lazy load, preload, and more. No jquery dependency. Features New (since 1.1.1) New (since 1.0.7) New (since 1.0.3) This plugin only adds 1 extra row in your database. And it will self delete upon uninstalation. 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. Optimize More! Need to optimize more? Try our WordPress Speed Optimization's Service. Other USEFUL PLUGINS TO OPTIMIZE YOUR SITE'S SPEED: Other USEFUL PLUGIN:

安装:

From within WordPress
  1. Visit Plugins > Add New
  2. Search for Optimize More Images
  3. Activate Optimize More! Images from your Plugins page
  4. Find Optimize More! Images in your sidebar menu to configure settings
Manually
  1. Download the plugin using the download link in this WordPress plugins repository
  2. Upload optimize-more-images folder to your /wp-content/plugins/ directory
  3. Activate Optimize More! Images plugin from your Plugins page
  4. Find Optimize More! Images in your sidebar menu to configure settings

屏幕截图:

  • Preload Featured Images, useful to bypass critical image render blocking issue
  • Use CDN for your images, useful to decrease server load
  • Add missing image dimension (width and height attributes)

常见问题:

Why changing the lazy load library from lozad.js to lazysizes.js?

More configurable.

How to enable lazy loading CSS background images?

Lazy loading css background images requires some effort from your end. Add an extra lazyload class to each container which has css background image in your favorite page editor. Or, simply put (one of) the container class in the include list field, the plugin will automatically add an extra lazyload class to the container.

Why is there preload featured image feature?

This actually a good practice to add extra performance boost to your WordPress site. On WordPress single post and WooCommerce single product pages, featured images usually appear on above the fold section, so it's better to preload them to avoid render blocking issues, just like any assets which required in above the fold section. We can adapt this single post and single product behaviour in pages too. Set your hero / above the fold images as featured images to programatically, and automatically, preload them on all pages.

Preload featured images not working?

It calls images set as featured image in the native WordPress post/pages, using get_post_thumbnail_id() and wp_get_attachment_image_src(). Make sure you already adds them. If you are using Elementor or other Page's builders, simply edit the pages with the native WordPress editor to set the featured image.

This plugin preload the wrong image size in my post?

By default, this plugin will be grab the url and preload the full image size and woocommerce_single for WooCommerce single product pages. You can change that using filter if your theme is uses different image size. See example below.

How to change the image size of featured image when using Preload Featured Images feature?

Here are some examples: add_filter( '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 );

How to change the image file types for CDN HTML rewrite?

Example if you want to include svg to your image CDN: add_filter( 'opm_cdn_file_types', function($opm_cdn_file_types) { return $opm_cdn_file_types . '|svg'; } ); Example if you want to completely change the default file types: add_filter( 'opm_cdn_file_types', function($opm_cdn_file_types) { return 'png|webp|svg'; } );

Add Missing Image Dimensions not working?

This depends on you theme or overal site's setup and how you upload your images. If it fails to grab the width and height of your images, you can specify the default image width and height fallback values that best suit your website situation in the provided fields.

更新日志:

1.1.3 1.1.2 1.1.1 1.1.0 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1