[jQuery] multiple inits on multiple script includes
Hi folks!
It would be great if jquery would catch multiple script includes and
initialize only once.
for example
<html>
<head>
<script type="text/javascript" src="jquery-1.2.4.js"></script>
<script type="text/javascript" src="jquery-1.2.4.js"></script>
<script type="text/javascript" src="jquery-1.2.4.js"></script>
</head>
</html>
will initialize jquery three times...
- simple fix -
if(!jQueryInitialized)
{
// stuff
jQueryInitialized = true
}