Order Of Loading Of Assets In A Page
Simple question.. if I have on my page: can I expect that css will be loaded in page before script l
Solution 1:
- The CSS will start load and parse, The the script will start load and parse.
- Then the script will execute after the load/parse is complete.
Solution 2:
CSS will start loading before the script but loading will be asynchronous. So, you can't be sure which one will be loaded first (depending on the size and internet connection status at that moment) but both of them will be loaded when you reach the onLoad()
event.
Post a Comment for "Order Of Loading Of Assets In A Page"