I am having a weird issue in Google Chrome. I am including the js file through the src script tag. I place a warning ('test') in the file, and when I load the page in Chrome, it warns twice. In every other browser, it warns once. Is there any known reason for this?
Here is the code that loads JS:
<script type="text/javascript" src="/js/main.js"></script>
This seems to be happening in Safari too. Doesn't happen in IE and firefox.
source
share