Click here to Skip to main content
15,889,266 members
Articles / Web Development / XHTML

ensure - Ensure JavaScripts/HTML/CSS are loaded on-demand when needed

Rate me:
Please Sign up or sign in to vote.
4.97/5 (22 votes)
9 Jun 2008CPOL8 min read 151K   610   91  
A tiny JavaScript library that provides a handy function "ensure" which allows you to load JavaScript, HTML, CSS on-demand and then execute your code. ensure ensures that relevant JavaScript and HTML snippets are already in the browser DOM before executing your code that uses them.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions