开发者

Javascript problem in Chrome and Safari

开发者 https://www.devze.com 2022-12-19 08:33 出处:网络
I have a Javascript image switcher on my products page. It working perfect in IE and Firefox but both Safari and Chrome fails to load the script on some开发者_如何学C pageloads. A refresh seems to fix

I have a Javascript image switcher on my products page. It working perfect in IE and Firefox but both Safari and Chrome fails to load the script on some开发者_如何学C pageloads. A refresh seems to fix it but when changing product page or language it crashes.

The product page

Im using Wordpress and the script is varal.org/media/imageswitcher/

Thanks! Anton


I did not experience any issues in either Chrome or Safari for Windows on your product page. Try this in Chrome, to check if the two scripts (imageswitcherconf.js and imageswitcher.js) are being loaded:

  1. Press Ctrl+Shift+J to open the JavaScript Console/Developer Tools window.
  2. Click the Resources tab on the top of the window.
  3. Enable resource tracking/script debugging if you have to.
  4. With the JavaScript Console/Developer Tools window still open, perform an operation that would normally trigger a crash, such as switching languages.
  5. On the left side of the window, under the Resources heading, you should see imageswitcherconf.js followed by imageswitcher.js. (For me, they appeared fourth and fifth in the list, respectively.)

If the files aren't being loaded:

  • Are you behind a caching proxy?
  • Is your browser cache clear?
0

精彩评论

暂无评论...
验证码 换一张
取 消