HEX
Server: nginx/1.24.0
System: Linux 19.178.153.160.host.secureserver.net 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: www-data (33)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /var/www/vedaholiday.com/wp-content/plugins/wp-optimize/js/loadAsync.js
/**
 * This function will work cross-browser for loading scripts asynchronously
 */
function loadAsync(src, callback) {
	var scriptTag,
		ready = false;

	scriptTag = document.createElement('script');
	scriptTag.type = 'text/javascript';
	scriptTag.src = src;
	scriptTag.onreadystatechange = function() {
		// console.log( this.readyState ); //uncomment this line to see which ready states are called.
		if (!ready
			&& (!this.readyState || this.readyState == 'complete')
		) {
			ready = true;
			typeof callback === 'function' && callback();
		}
	};
	scriptTag.onload = scriptTag.onreadystatechange
	
	document.getElementsByTagName("head")[0].appendChild(scriptTag)
}