I have an HTML page where some sections require large Javascript files and contain large images. These sections are initially dot displayed. Despite "display: none" the browser loads all images and Javascript. One way to solve this problem would be to move these sections into a separate file and use ajax to load it.
I want to avoid the overhead of making another request and I am thinking it would be nice to ajax-load the html from the dom or a javascript string. Is this possible?
Thanks, Ropo