• Resolved diggisaur

    (@diggisaur)


    Hi all,

    Love your plugin!

    One question, how do I force these two CSS files from Simple Lightbox to use my CDN?
    /simple-lightbox/themes/baseline/css/style.css
    /simple-lightbox/themes/default/css/style.css

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, SLB’s files are loading using built-in WordPress functionality, so contacting your CDN provider for guidance on modifying this behavior would probably be your best option.

    For example, some CDNs provide a WordPress plugin that updates asset URLs (script, styles, images, etc.) on the fly to those load files from the CDN.

    Thread Starter diggisaur

    (@diggisaur)

    This is the response I received from my caching/CDN enablement plugin support. I use WP Rocket.

    That’s happening because those CSS files are being loaded using jQuery once the page has been loaded. WP Rocket cannot rewrite such requests.

    This behavior only occurs with Simple Lightbox. I have other plugins, whose CSS and JS assets are being correctly served by WP Rocket through my CDN. WP Rocket is not configured to exclude any files from the CDN or cache.

    Plugin Author Archetyped

    (@archetyped)

    Thank you for the additional details. I will need to look into how WP Rocket handles rewriting asset URLs.

    WP Rocket’s developers have been contacted, however, note that as a paid plugin, access to the plugin for further investigation is not guaranteed.

    • This reply was modified 5 years, 10 months ago by Archetyped.
    Thread Starter diggisaur

    (@diggisaur)

    Understood. Thanks for all your assistance. Greatly appreciated!

    Plugin Author Archetyped

    (@archetyped)

    Unfortunately, WP Rocket’s developers did not respond to any requests, so this cannot be investigated any further from SLB’s end.

    This likely means that the answer provided by to you by WP Rocket’s developer is the final word on this, unless we are able to investigate WP Rocket’s behavior at some point in the future.

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

The topic ‘CDN and Simple Lightbox CSS’ is closed to new replies.