/ Published in: JavaScript
1) if jQuery is already loaded into a browsers' cache -> do nothing
2) if the object is undefined, write a script-element into the source which references google's minified jquery file.
3) if jQuery is still undefined (let's assume Google is down). write a script reference to our local copy into the source.
You could also use the if statements to define different JS files for the frontend and the backend.
(as seen on www.ie6update.com)
2) if the object is undefined, write a script-element into the source which references google's minified jquery file.
3) if jQuery is still undefined (let's assume Google is down). write a script reference to our local copy into the source.
You could also use the if statements to define different JS files for the frontend and the backend.
(as seen on www.ie6update.com)