Hi guys,
This is a weird one. I am new to jQuery so have been following a tute online. My script works, its just takes ages to load - up to a minute! Things were working fine before when the script was on the same page as the HTML but when I put it on its own file it just slows right down. All these files are just operating straight from my local.
All I am doing is changing the color of a list (ul) with jQuery on an external .js file.
This is the only code on that .js file (called script.js)
$(function () {
$('#list1 li').addClass('alert');
});
And this is the code on my HTML file:
<script language="JavaScript" SRC="jQuery-1.6.3.pack.js"></script>
<script src="scripts.js" type="text/javascript"></script>
</head>
<body>
<ul id="list1">
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>List Item 4</li>
<li>List Item 5</li>
</ul>
There is an external css of course that just has:
Anyone know why it would be working so slow?
Thanks!