4 ms·
Sorry, but you aren't right. Those are mostly located in body tag. They are requested as soon as encountered by browser, because they might issue "document.writ
by rarestblog 16y ago
Sorry, but you aren't right. Those are mostly located in body tag. They are requested as soon as encountered by browser, because they might issue "document.write", so the execution of rest of HTML is delayed until that "src" is loaded. That's exactly what causes the problem. Putting script into body doesn't defer its execution.
I'm not sure how browsers render <script src in head, but probably the same.
- cont4gious 16y agooh, ok, thanks! i would have made the assumption that this would have fixed it and been frustrated.
- briancray 16y agoWorks same in the head. All scripts if not set to asynchronous will prevent further rendering of the page until the script has finished loading and running.