Conditionally include jQuery from different sources

[javascript]
<!–
* Code by Marcio Toledo
* http://marciotoledo.com
–>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery === "undefined") {
document.write(unescape("%3Cscript src=’#{local_path}’ type=’text/javascript’%3E%3C/script%3E"));
};
</script>
[/javascript]

Leave a Reply