According to http://caniuse.com/script-defer, most browsers support the script tag\'s defer attribute.
script
defer
I would like to know if scripts spec
To defer inline javscript you can use type="module" which then makes $(document).ready() redundant.
Because type="module" implies defer scripts will execute in order with other deferred scripts.
See can I use 92% browser support in September 2020. https://caniuse.com/es6-module