• Resolved Dekadinious

    (@dekadinious)


    I have a problem with a newsletter slide-in box that I have made for my site. If you go into incognito-mode and go to the front page, then choose an article and then scroll down to the bottom, you will get the box displayed.

    Now, if you click on the X, the box will not close. If you refresh the page and scroll down, it will close. Now it will not appear because of cookies, but just close the incognito-window and open a new one.

    If you now go directly to the URL of the article, it will close. So it only refuses to close if you go from the front page to the article. Or from another page where it does not exist to the article.

    Disabling the Litespeed Cache Plugin fixes the issue.

    I think this happens because of how Litespeed handles the loading of subsequent pages? I think the javascript file does not understand that the element exists when you go form a page where it does not to a page where it does.

    How do we fix it?

    • This topic was modified 4 years, 9 months ago by Dekadinious.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    What if you reset to default setting?

    I am thinking might be some conflict due to JS combine/JS monify.

    Best regards,

    Thread Starter Dekadinious

    (@dekadinious)

    Is there an easy way to revert to my current settings if I reset to the default settings?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You can go to Toolbox –> export/import , where you can save your current setting into exported file for later restoration

    Best regards,

    Thread Starter Dekadinious

    (@dekadinious)

    Hello!

    Disabling js-combine have seemed to fix the issue with the slidein not closing.

    But I also have a Facebook like button at the bottom of every post. This is the standard code from Facebook. This does not appear if you come from the front page, but does appear if you refresh the page while on the post.

    Looking at the source code shows that the iFrame is not loaded at all when it does not show up. Just an empty div. Disabling Litespeed fixes this problem also. I have tried different settings and this problem is tied to minifying of JS-files.

    How do we fix both these issues with the best performance of the cache?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You can try exclude certain JS file from being combined/minified and certain ifram efrom being lazyloaded

    Best regards,

    Thread Starter Dekadinious

    (@dekadinious)

    I get the same problem with Google Analytics. The only page that is tracked is “/”, the root page. When navigating the site, nothing changes on Analytics Real-time. But when refreshing the page, the correct page appears.

    Disabling Litespeed Cache fixes this. One can ask oneself what the point is if all JS-files has to be excluded?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    It’s caused by instant click, disable it will solve the issue.

    Best regards

    Thread Starter Dekadinious

    (@dekadinious)

    Thank you!!

    This solved all the problems even with JS-combine and minify turned on. It also solved the Analytics problem. This should probably be part of the documentation? That unexpected results may happen.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Weird javascript issue…’ is closed to new replies.