I'm just wondering what the simplest javascript function will request a server side .js file. I currently have a jquery-1.4.2.min file that weighs 70 kB, and I decided that there should be a way using javascript to request this file. Thus, if the user does not have javascript enabled, the function will be ignored and the jquery file will not need to be loaded, thereby speeding up page loading and reducing the bandwidth used by the server.
Also, if this works, will the file be downloaded, or will it begin to be used? Thanks in advance!
source share