GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eligrey/async-document-write: An asynchronous document.write implementation

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
tests
tests
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
async-document-write.js
async-document-write.js
 
 
async-document-write.min.js
async-document-write.min.js
 
 

Repository files navigation

Asynchronous document.write

Asynchronous document.write (ADW) is a JavaScript library and protocol that enables the usage of document.write in asynchronous scripts. After loading ADW, document.write may be called by any script even after the page has completed loading. ADW is backwards compatible with normal document.write and it also implements an asynchronous document.writeln method.

ADW can be utilized by providers of HTML "emebedding" scripts to enable the scripts to be included asynchronously (a la <script async>) when ADW is loaded. All you have to do is add eval(document.write.START); to the start of the code and eval(document.write.END); to the end. If the target page does not have ADW loaded, your code will behave as it would normally. The evals simply do nothing and produce no errors if ADW is not loaded.

Usage

eval(document.write.START);
document.write(...);
eval(document.write.END);

Tracking image

About

An asynchronous document.write implementation

Resources

Readme
License
Activity

Stars

68 stars

Watchers

3 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.