• Resolved gcdorian

    (@gcsystems)


    I’m messing around with this plugin and it’s just what I need, really lightweight and transparent, with pretty good performance.

    Can’t find any way to avoid deferring certain images… maybe by class? or using wordpress filters?. I use metaslider and its images load annoyingly slow when I have the plugin enabled (since it is a container with pretty big images inside, meant to load sequentially). I’m used to add it to exceptions whenever I use lazy loaders, it’s always an issue.

    I’ve seen a “do not optimize” option in the config that accepts regular expressions, but looks like that’s only for javascript elements. Is there any way to exclude images or html elements in general?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shinsenter

    (@shinsenter)

    @gcsystems

    Thank you about the feedback.

    You can add an attribute into tags that you do not want them to be processed by the plugin.
    E.g:

    <img data-ignore src="....." />
    or
    <script data-ignore>......</script>

    • This reply was modified 5 years, 8 months ago by shinsenter.
    • This reply was modified 5 years, 8 months ago by Andrew Nevins.
    Thread Starter gcdorian

    (@gcsystems)

    @shinsenter

    Thanks for the helpful answer.

    I’ll use some javascript to add the data-ignore html attribute to the images I need to exclude, works nicely.

    Just as a suggestion, would be nice to be able to do that using classes, since are easier to manipulate and most WordPress plugins give the option to add extra classes here and there. That way custom code wouldn’t be needed.

    Keep up the great work.

    Plugin Author shinsenter

    (@shinsenter)

    Thank you so much.

    Your idea is great and I will consider adding that feature in next version.

    Have a nice day

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excluding certain images’ is closed to new replies.