Site logo

Archived topic

explicit width and height for the first image that shows up [only mobile]

7 replies · Started by liz on December 12, 2021

Viewing posts 1–8 of 8

Hi,

Hope you're all doin well!

I want to give the first image that shows up on screen [only on mobile] an explicit width and height..it might help to load the image much faster..my preferred size is 400x400 or you can give me the option to change the image size so I can edit it should I change my mind regarding the size. Link to the website is in the private info field. Thank you.

Hi there,

changing its viewed size isn't going to improve its loading time. Looks like Shortpixel is already serving a well optimized image for it. The biggest impact on loading time for that image will probably be thats is being Lazy Loaded.

Not sure what plugin you're using for that - might be worth checking with its developer if its possible to exclude that very first image from lazy loading

Hi, David!

Yes there is an option to exclude the first image from lazy loading..the only thing is I am asked about the "Comma-separated list of to be excluded image classes or filenames"..Im sorry..im not quite familiar with all these technical terms..

I would want to exclude the first image that shows up on front page/ post page/ pages. The link to my website is in the private info field.Thank you.

Hi Liza,

Can you link us to the specific page where this occurs? or link to a sample page if it occurs on multiple pages.

So we can check what kind classes the first image uses to recommend what can be used for exclusion. :D

Hi Vin,

I want to exclude the first image in the magazine grid {what do u think? Maybe first 2 images? You know best..so I will let you decide on this}

The single post hero as it is the main entry point for readers who search on google.If you want to include more than what I stated here..please do so..Thank you.The link to the site is in the private info field.

This is going to be quite tricky to do as all the WPSP images share the same post image class which is wp-post-image.

I'm not exactly sure if the lazyload plugin you use has the capability to exclude a specific instance of an image class but it's worth a try asking the developer/support of the plugin you're using for lazy load. :)

Hi Vin

Okay..I will try to ask the developer..BTW..Shall I then even attempt to try to put [wp-post-image] in the list of excluded images? Oh..my it's a bit tricky. I will end up not lazy loading all images..right?

I will end up not lazy loading all images..right?

It will disable lazy load on ALL WPSP images only.

You can wait for the plugin support's answer if they have anything that may help. :D

This archived topic is closed to new replies.