V
V
Victoria2020-12-23 14:39:07
JavaScript
Victoria, 2020-12-23 14:39:07

How can I fix the script so that it runs every time the page is reloaded?

Good afternoon! Here is the script - https://codepen.io/victoryzorkina/pen/xxEXPXV , it works when the page is loaded, after changing the language the page freezes because of it, after clearing the cache everything works again.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2020-12-23
@SilenceOfWinter

wrap code in

jQuery(function( $ ) {
  // Your code using failsafe $ alias here...
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question