All concerns of combination, minification, gzipping, and cache aside. Does marking a script as async still preserve script execution order?
Say I have a page where jquery is included at the top followed by other scripts at the bottom that assume the presence of jquery.
If I mark the jquery script with the async attribute I know the browser will continue parsing my html. However, will the browser guarantee that jquery is loaded before my other scripts execute or might things happen out of order resulting in an undefined $
?
Making a script async does not guarantee any synchronous execution, except that of the script itself.
No. It will execute asynchronously.
http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#attr-script-async