7 | | @westonruter And how hard would it be to fix/improve that script when transition it to use `async` or `defer`? :) |
8 | | Also, ideally the developers will wrap their inline code in an event callback or lambda function or something similar, not just "dump it" in global scope. So the transition to using `async` or `defer` could actually be used to improve their JS too. |
| 7 | @westonruter And how hard would it be to fix/improve that script when transition it to use `async` or `defer`? :) |
| 8 | |
| 9 | Also, once this event handler is added, the inline script won't need to be outputted "after" the main script. Can be outputted at any time making it a lot more flexible, less dependent on PHP, and generally of a bit better quality. |
| 10 | |
| 11 | Ideally the developers will wrap their inline code in an event callback or lambda function or something similar, not just "dump it" in global scope. So the transition to using `async` or `defer` could actually be used to improve their JS too. |