Sha256: b9da48ae620225e2df8a5be11e82b973477a964d3d4e338fd5c37fef7370eb54

Contents?: true

Size: 722 Bytes

Versions: 12

Compression:

Stored size: 722 Bytes

Contents

// Simple script loader that uses jQuery.readyWait via jQuery.holdReady()

//Hold on jQuery!
jQuery.holdReady(true);

var readyRegExp = /^(complete|loaded)$/;

function assetLoaded( evt ){
	var node = evt.currentTarget || evt.srcElement;
	if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
		jQuery.holdReady(false);
	}
}

setTimeout( function() {
	var script = document.createElement("script");
	script.type = "text/javascript";
	if ( script.addEventListener ) {
		script.addEventListener( "load", assetLoaded, false );
	} else {
		script.attachEvent( "onreadystatechange", assetLoaded );
	}
	script.src = "data/readywaitasset.js";
	document.getElementsByTagName("head")[0].appendChild(script);
}, 2000 );

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
lady_josephine-0.7.0 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.6.3 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.6.2 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.6.1 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.6.0 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.5.0 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.0.4 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.0.3 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.0.2 vendor/assets/components/jquery/test/data/readywaitloader.js
lady_josephine-0.0.1 vendor/assets/components/jquery/test/data/readywaitloader.js
guff-compass-1.0.0 demo/bower_components/jquery/test/data/readywaitloader.js
guff-compass-0.7.0 demo/bower_components/jquery/test/data/readywaitloader.js