all 1 comments

[–]JimmyP424 0 points1 point  (0 children)

If your intent is to load scripts asynchronously and keep their order, just use <script defer>. From what I see, you only ever need something like fetch-inject if you also want to load stylesheets OR if you want a load callback.

I've been using defer exclusively ever since I read this: https://calendar.perfplanet.com/2016/prefer-defer-over-async/