I have a webpage with a lot of javscript functions. It was a requirement for the job to have a single html file and call all the sections inside the same page and replace the "old content" with the new one without leaving the page. (Please don't tell me if it was a good idea or not.)
So, all of them are necesary for the site to work, but it is not necesary to load them at the beggining. Is there any form to load and call functions when clicked a button?
I will appreciate a lot your help.
document.head) with the "extra" functions. Since it is for a mobile site you should look into minification and compression. That will save you a lot of bandwith.