• Resolved harshalbundiwal

    (@harshalbundiwal)


    Hello there, I am facing an issue with the plugin.
    I am using the web stories Gutenberg block for showing the web stories at the end of my posts but they are not opening when clicked on any browser.
    I have debugged the error and it is due to the On Page Java script optimization.
    When I have disabled the optimization the option is working but when turned on the option is not working.

    Can you tell me which Java script or a url do i need to exclude for optimization to work properly?

    Url of the post – here

    Note – All my plugins are upto date and WordPress version is also uptodate. No errors on site health.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    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

    Thread Starter harshalbundiwal

    (@harshalbundiwal)

    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.

    Plugin Author Pascal Birchler

    (@swissspidy)

    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.

    Thread Starter harshalbundiwal

    (@harshalbundiwal)

    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.

    Thread Starter harshalbundiwal

    (@harshalbundiwal)

    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.

    Plugin Author Pascal Birchler

    (@swissspidy)

    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.

    Thread Starter harshalbundiwal

    (@harshalbundiwal)

    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

    Plugin Author Pascal Birchler

    (@swissspidy)

    Now the lightbox opens as expected when clicking on the stories in the carousel ??

    Thread Starter harshalbundiwal

    (@harshalbundiwal)

    Thanks for the help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Stories not showing’ is closed to new replies.