PreloadJS

PreloadJS  0.2.0

PreloadJS > PreloadJS > TagLoader
Search:
 
Filters

Class TagLoader - extends AbstractLoader

The loader that handles loading items using a tag-based approach. There is a built-in fallback for XHR loading for tags that do not fire onload events, such as <script> and <style>.

Constructor

TagLoader ( item , srcAttr , useXHR )
Parameters:
item <String | Object> The item to load
srcAttr <String> The attribute to use as the "source" param, since some tags use different items, such as