65.9K
CodeProject is changing. Read more.
Home

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

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.97/5 (21 votes)

Jun 9, 2008

CPOL

8 min read

viewsIcon

157196

downloadIcon

623

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.