javascript - Lazy loading and dependency resolution -
some time ago, reading article(a library built guy) how library can
- lazy loading of js
- resolve dependencies between js (typically encountered when trying "include" 1 js another)
- include files once. thought specified multiple times regardless of how called (either directly specifying file or specifying 1 of dependencies)
i forgot bookmark it, mistake. can 1 point me can above. know dojo , yui library have this, looking can use jquery
i looking 1 more feature well.
- my site has asp.net user controls (reusable server side code snippets) have js. of them fired right away, when page loading gives bad user experience. yahoo performance guidelines specify js should @ bottom of page, not possible in case require me separate js , corresponding server side control different files , maintenance difficult. can put jquery document.ready() in user control js make sure fires after dom has loaded, looking simpler solution.
is there anyway "begin executing any js after dom has loaded" in global way writing "document.ready" within every user control ?
microsoft research proposed new tool called doloto. can take care of rewriting & function splitting , enable on-demand js loading possible.
from site..
doloto system analyzes application workloads , automatically performs code splitting of existing large web 2.0 applications. after being processed doloto, application transfer portion of code necessary application initialization. rest of application's code replaced short stubs -- actual function code transferred lazily in background or, @ latest, on-demand on first execution.
Comments
Post a Comment