Lightbox with PhotoSwipe with Cloudflare Rocket Loader

[ad_1]

Great plugin, thank you for making life easier for many.

The plugin has been working without any problem. I recently enabled CloudFlare’s Rocker Loader feature. It didn’t cause any issue but throwing two warnings where the second one is repeated several times:

1 – A preload for ‘…wp-content/plugins/lightbox-photoswipe/assets/ps5/frontend.min.js’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.

2 – The resource …/wp-content/plugins/lightbox-photoswipe/assets/ps5/frontend.min.js was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate ‘as’ value and it is preloaded intentionally.

The second warning appears as many times as the plugin is used on a page. When I disable the Rocket Loader the warnings go away.

Any idea what is causing the issue?

  • This topic was modified 1 hour, 36 minutes ago by Asif.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer