Javascript problem in Chrome and Safari
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:
- Press Ctrl+Shift+J to open the JavaScript Console/Developer Tools window.
- Click the Resources tab on the top of the window.
- Enable resource tracking/script debugging if you have to.
- With the JavaScript Console/Developer Tools window still open, perform an operation that would normally trigger a crash, such as switching languages.
- 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?
精彩评论