9

I was wondering if jQuery's $(document).ready() function is always waiting also for asynchronously loaded scripts:

HTML

<script async src="...">

JavaScript

$(document).ready(function(){
   //is the script always loaded at this point?
});

I couldn't find any confirmation of this assumption in the jQuery documentation. Is there a source where this is explicitly regulated?

Simon Ferndriger
  • 4,455
  • 6
  • 28
  • 53

0 Answers0