Function for disabling lazy load for specific images
-
I am in this situation: I have several images in above the fold for which I would like to disable lazy load, however using a conditional hook from wp is mobile. Example the logo for desktop I would like it to be Lazy load free only if the user is browsing from desktop, vice versa for the one for mobile (which in desktop is in display none, but it is still cathed by the browser) . For this reason I cannot exclude from lazy load the images from plugin interface. Therefore, I ask if there is a hook I can use that allows me to insert a list of image urls for which Lazy load should not be performed. A possible class to add to the images unfortunately is not a good solution anyway since the theme I use does not allow me to add classes to the logo and so another plugin that publishes two images above the fold.
Thanks!
The page I need help with: [log in to see the link]
The topic ‘Function for disabling lazy load for specific images’ is closed to new replies.