Lscwp

  • LiteSpeed Cache for WordPress (LSCWP) is an all-in-one site acceleration plugin, featuring an exclusive server-level cache and a collection of optimization features. Since all of NameHero's Web and Reseller Hosting packages use the LiteSpeed web server, this plugin integrates directly and is 100% free.
  • LiteSpeed Cache for WordPress (LSCWP) is a PHP-based plugin that provides page caching and other site optimization features, which deliver superior performance to your WordPress site. FastWebHost servers are configured with LiteSpeed web server technologies so that your websites will get all the benefits like superior performance and value.

LiteSpeed Cache for WordPress allows you to exclude individual images from Lazy Load, but when there are hundreds of images to be excluded, this is not optimal solution. Luckily, we can also exclude images by class name.

How to Exclude by Class Name

Our optimised and managed WordPress is 84X faster than Apache and 12X faster than NGINX wordpress hosting in Malaysia. We have developed a managed WordPress web hosting solution using cPanel with a host loads of programs that increase the speed of Wordpress websites and also provide the best protection for your site.

Check the Source Code

Lwp Wiki

Access the page by browser, and view the source code.

Look for images where the image tag includes data-lazyloaded=“1”, which means it is lazy loaded.

If you have the LSCWP optimization feature HTML Minify enabled, your source might be hard to read. You can use the /?LSCWP_CTRL=before_optm query in your URL to bypass LSCWP optimization, like so: https://www.your_domain.com/?LSCWP_CTRL=before_optm. This will make it easier to read.

Find The Class Name

In this example, there are three class names: wp-block-gallery columns-1 is-cropped , blocks-gallery-item and wp-image-46

Only the wp-image-46 is inside the image tag (between <img and />), so this is the class name we need in order to exclude this image from Lazy Load.

Add Class Name to Exclude Box

Save Changes and Purge Cache

Save changes and press the Purge All button.

Check the source code again. You should see that this image has been excluded from lazy load, and other images are still being lazy loaded.

Lscwp Wordpress

Another Example

Plugin

The above example might not be entirely realistic, as wp-image-46 only applies to a single image. The following example shows an image that was placed with a page builder plugin, and has classes that are likely to apply to multiple images. This is a more realistic use of the Exclude Class feature.

In this case, we find the class name attachment-large size-large and would add that to the Exclude box.

Please do not forget that class name can also be a partial match. We can use attachment-large to fit any class name that contains that string, such as attachment-large size-medium and attachment-large size-small.

Troubleshooting

Lip pencil mac. If you've added the class into the Exclude list, but images with that class are still being lazy loaded, try the following:

Lscwp

  1. Check the source code again and see if you entered the correct class
  2. Check whether the page is cached, and if so, purge it
  3. Check the Debug Log, which should look something like this:

Lscwp Settings

If you're not seeing it, chances are you used the wrong class name.