Skip to main content
I'm streaming on Twitch right now. You should stop by. Let's go!

Tagged: method

  • Javascript document.write alternative


    When a script is loaded synchronously, its element's position in the DOM can be determined. With this information, the <script> element can act as a pivot point for inserting dynamic content. This eliminates the need for document.write, a function which wreaks havoc where AJAX is involved (and flies in the face of modern web development best practices).  …

View all tags