• Resolved Anonymous User 16052280

    (@anonymized-16052280)


    Hi Gabe,

    Is Asset CleanUp able to manage assets like images?
    I’m looking to preload images on specific pages.

    Thank you,
    Andrei

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @andrei0luca no, Asset CleanUp does not have this feature but due to the higher number of requests, I’m considering adding this feature.

    You can preload images conditionally via custom code and using the wp_head action hook (read more about it here: https://developer.ww.wp.xz.cn/reference/hooks/wp_head/).

    Within the HTML code, you would add something like:
    <link rel="preload" as="image" href="https://yourwebsite.com/wp-content/full/path/to/the/image/">

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Preload Images’ is closed to new replies.