Avatar of MJ
Flag for United States of America

asked on 

How To Create A Pollyfill that converts document.write in Async Loading

I have a JavaScript file that uses document.writes. This file needs to be loaded asynchronously on a new web app. The issue is that this file is used on a bunch of other web apps. synchronously. I was told I could write a pollyfill to make the document.writes into asynchronous loading. I have never written a polyfill, so I'm looking for advice and examples on how to do this? I have looked at a few videos and web sites but still not sure how to approach this? Appreciate any help or guidance.

Web DevelopmentJavaScript* HTML 5

Avatar of undefined
Last Comment
Julian Hansen

8/22/2022 - Mon