I am working on a web project which will be available offline, simple html, css and js pages. If the user has a working internet connection, an additional js file will be loaded and do stuff on the dom (jQuery, mainly).
There are several ways to test if online connectivity is provided (like https://gist.github.com/jpsilvashy/5725579 and checking the navigator.onLine). I thought, the easiest way is not to test if there is internet and then load a file, but rather just include the (external js) file in the first place. If there is internet, the file will be loaded and execute anyways. My question is: is there any disadvantage of doing this? Like will this be an error on machines that dont have internet?