Skip to content

dslawrence/resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

jquery.resource.js

jQuery plugin for loading JavaScript, CSS & HTML resources into a page.

  • All JavaScript and HTML files will be loaded prior to "callback" being run.
  • Multiple calls for the same resource will not result in multiple loads, even if the calls are simultaneous. They will all wait for the intial load, or they proceed immediately if the resource has already been loaded.
  • Scripts are run when they are loaded.
  • HTML is inserted into the DOM in a hidden div (for template use).
  • Callback is not required.

Example Syntax

$.resource( [ "/script/one.js", "/script/two.js", "/css/file.css", "/html/template.html" ], function() { //callback } );

Dependencies

About

jQuery plugin for loading JavaScript, CSS & HTML resources into a page.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors