DEV Community

S M Ashraful Azom
S M Ashraful Azom

Posted on

how to avoid document.write my below code

how to avoid document.write my below code

1

This code is working, but google pagespeed detect avoid document.write.

I've tested various alternatives, lining up my HTML elements prior to the JS, then using getElementById, followed by either innerHTML or appendChild, or even lining up the elements inside the JS, by means of createElement

Top comments (0)