Weird javascript issue…
-
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?
The page I need help with: [log in to see the link]
- The topic ‘Weird javascript issue…’ is closed to new replies.