inlining the javascript gives jquery error
-
because the inline javascript code is being executed apparantly already before the jquery.js has been loaded i’m receiving an error:
Uncaught referenceError: jQuery is not definedbesides from that, i would prefer this code not to be inline, as i’m running my sites on http/2, which makes it load on every page refresh. if it would be in a separate file it could be cached, and also be stored on a cdn for better performance. also on http/1.1 this could be beneficial, as all javascript could be minified and stored into 1 file on a cdn.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘inlining the javascript gives jquery error’ is closed to new replies.