Учитавање јКуери - ЦСС-трикови

Anonim

Учитајте помоћу Гоогле АПИ-ја

 google.load("jquery", "1.2.6"); 

Директна веза до Гоогле-а

Проверите да ли је напуњен, утовар само ако је истоварен

var jQueryScriptOutputted = false; function initJQuery() ( //if the jQuery object isn't available if (typeof(jQuery) == 'undefined') ( if (! jQueryScriptOutputted) ( //only output the script once… jQueryScriptOutputted = true; //output the script (load it from google api) document.write(""); ) setTimeout("initJQuery()", 50); ) else ( $(function() ( //do anything that needs to be done on document.ready )); ) )