Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript file loading twice

I am having a strange problem in Google Chrome. I am including a js file via script src tag. I place alert('test') in the file and when I load the page in Chrome, It alerts twice. In every other browser it alerts once. Is there any known cause for this?

Here is the code that loads the JS:

<script type="text/javascript" src="/js/main.js"></script>

It appears this happens in Safari as well. Does not occur in IE and firefox.

like image 635
John Avatar asked Jun 14 '11 00:06

John


1 Answers

I had this recently and eventually found out it was a chrome extension, specifically the cache killer extension

like image 77
Gibb Sonn Avatar answered Oct 22 '22 23:10

Gibb Sonn