What plugin or solution are you using for this sort of optimization?
The Web Stories block is powered by a few scripts and the number of scripts can change between releases, so ideally you’d exclude all scripts in wp-content/plugins/web-stories
Hello, I tried to exclude the url as suggested by you, but it is not working.
Suggest me something else.
I am using the Light Speed Cache Plugin
My settings for JS Optimisation are
JS Minify – Yes
JS Combine – Yes
Load JS Deferred – Yes
Load Inline JS – Deferred
I am using the Carousel option to display stories from Gutenberg Block
Link for Page where the carousel story option is present – here
Note – When all the JS optimisation are turned off the option is working properly.
Did you change something again in the last couple of minutes? For a brief moment I saw the JS being loaded separately, but now it’s all minified again by the LiteSpeed plugin.
From what I can see, the JS Minify & JS Combine options are actively breaking the JavaScript code.
Specifically, they turn the .ws-lightbox-${this.instanceId} .web-stories-list__lightbox
selector in wp-content/plugins/web-stories/assets/js/lightbox.js
into .ws-lightbox-${this.instanceId}.web-stories-list__lightbox
without the space in it. So that’s a clear bug in LiteSpeed that you should report to them.
Again, exclude all scripts from wp-content/plugins/web-stories
from any JS modifications to work around this, or simply disable all JS optimizations as you previously did.
This is a bug in LiteSpeed that we can’t do anything about.
Yes, I had disabled the JS optimisation completely, i was taking some screenshot and reording to add here for your reference.
Now I have turned on the JS optimisation and it is not working.
Can you please check it one more time. Now all the settings of JS optimisation are enabled. If the problem exists I will report it to the Litespeed cache plugin.
Yes this issue still exists because everything is minified and Web Stories JavaScript is not excluded. So yeah, please report this bug to them if disabling these optimizations is not an option for you.
Can you check it one more time.
There is a beta version of the lite speed cache which i have shifted to and it is showing everything properly with all JS setting enabled. The original version is scheduled to release on 11 August. And i have opted for testing it and it is working properly. Can you please check it now.? If the problem exists i will add a support threat to Lite Speed Cache Plugin
Now the lightbox opens as expected when clicking on the stories in the carousel 👍