javascript - What is loading first in this script? -
in terms of loading order, happening in script? divloading div tag finish loading before jquery libraries finish loading? and, libraries start loading before divloading div tag created on users screen?
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> </head> <body> <div id="divloading">loading...</div> <img src="http://goes.gsfc.nasa.gov/pub/goes/060619_fulldisk_color.jpg" /> </body> </html>
js blocking, html parsing pause while scripts loaded.
Comments
Post a Comment