Closed gmarty closed 8 years ago
Because the injected script is completely independent of all other potential JS scripts, we can take advantage of the defer and async attributes of the <script> tag. So the injected tag would look like:
defer
async
<script>
<script defer async src="install-sw.js"></script>
Also as discussed offline, it may be more efficient to append the tag just after the <html> tag.
<html>
Closed by #3
Because the injected script is completely independent of all other potential JS scripts, we can take advantage of the
defer
andasync
attributes of the<script>
tag. So the injected tag would look like: