Maria Jabon
unread,Dec 8, 2008, 5:08:21 PM12/8/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CS193H High Performance Web Sites
I'm stumped on a few of these:
How can you load an external script asynchronously, and have an inline
script execute as soon as the external script is loaded?
Maybe is the answer to use a set timeout function in the onload?
What happens if an external script loaded asynchronously does
document.write?
Not sure
What's the unusual behaviour of a stylesheet, inline script, and image
(in that order)? What would explain why browser developers implemented
this behaviour?
My thoughts:
Stylesheets block || downloads in FX , not ie
Browsers parse css and js sequentially. Normally downloads can happen
while css execute, but not with a script after.
I don't know why browsers chose this.
What do inline scripts block? How can you workaround this blocking?
My thoughts:
Downloads of anything else, although while they execute other things
can happen. You can move them to the bottom, defer them, load
asynchronously, or use a setTimeout function.
How does @import cause downloading problems with stylesheets followed
by inline scripts?
My thoughts:
It blocks parallel downloading of stylesheet