Page not refreshing code

We added some JavaScript as custom script on our site. However it is not refreshing and running when our pages reload. What can we do?

Hi,
Have you placed your code in the onReady function of the page?
please share your code so we can inspect.

We added it into the custom scrripts part of the UI. It looks something like this.

Hi,
This code wouldn’t work because it isn’t supported by the wix code API, check it out here , also check out the wix code basics here .
If you need guidance writing the code we will be glad to help you :slight_smile: