Simple question.. if I have on my page:
<link .. with href to some css>
<script.. with src to some script>
can I expect that css will be loaded in page before script loaded and executed, or they can be loaded in parallel?
Simple question.. if I have on my page:
<link .. with href to some css>
<script.. with src to some script>
can I expect that css will be loaded in page before script loaded and executed, or they can be loaded in parallel?
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.