Monday 15 August 2011

jquery - Load External javascript, but HTTP request repeatedly for one file javascript -



jquery - Load External javascript, but HTTP request repeatedly for one file javascript -

i have problem when load external html specific <div>. here problem :

i have html files, "index.html" , "problem.html". in problem.html utilize skrollr animate content. when click "open" button in index.html, utilize jquery load() method load problem.html specific in index.html. the content loading, slowly. when check using firebug, see many request skrollr.min.js. why skrollr.min.js , other file repeatedly?

when refresh page, load menu , see @ firebug there many skrollr.min.js , file called.

you seek load page via iframe see if it's faster. set innerhtml of container to

<iframe src="http://yourdomain.com/problem.html"></iframe>

when clicked button.

javascript jquery

No comments:

Post a Comment