jQuery has a rich set of functions including .ready() http://api.jquery.com/ready/ which is very helpful if you want to perform some operations on page ready. Initially I thought — wow! I can make whole body invisible until it’s ready (no working garbage apper). After done that I noticed that pages became very slow. After some investigation I realized that while my scripts are on the same location others like Google Maps are somewhere far and it may take significant time to load and evaluate them while all other data are ready and can be viewed. So don’t blame django use profilers first!
Спасибо, довольно интересно.
Link | Март 11th, 2010 at 20:19