| Server IP : 89.39.208.18 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : User : ( ) PHP Version : 7.4.33 Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home3/././mahyarcake/././public_html/wp-content/plugins/litespeed-cache/assets/js/ |
Upload File : |
const litespeed_ui_events = ['mouseover', 'click', 'keydown', 'wheel', 'touchmove', 'touchstart'];
var urlCreator = window.URL || window.webkitURL;
// const litespeed_js_delay_timer = setTimeout( litespeed_load_delayed_js, 70 );
litespeed_ui_events.forEach(e => {
window.addEventListener(e, litespeed_load_delayed_js_force, { passive: true }); // Use passive to save GPU in interaction
});
function litespeed_load_delayed_js_force() {
console.log('[LiteSpeed] Start Load JS Delayed');
// clearTimeout( litespeed_js_delay_timer );
litespeed_ui_events.forEach(e => {
window.removeEventListener(e, litespeed_load_delayed_js_force, { passive: true });
});
document.querySelectorAll('iframe[data-litespeed-src]').forEach(e => {
e.setAttribute('src', e.getAttribute('data-litespeed-src'));
});
// Prevent early loading
if (document.readyState == 'loading') {
window.addEventListener('DOMContentLoaded', litespeed_load_delayed_js);
} else {
litespeed_load_delayed_js();
}
}
async function litespeed_load_delayed_js() {
let js_list = [];
// Prepare all JS
document.querySelectorAll('script[type="litespeed/javascript"]').forEach(e => {
js_list.push(e);
});
// Load by sequence
for (let script in js_list) {
await new Promise(resolve => litespeed_load_one(js_list[script], resolve));
}
// Simulate doc.loaded
document.dispatchEvent(new Event('DOMContentLiteSpeedLoaded'));
window.dispatchEvent(new Event('DOMContentLiteSpeedLoaded'));
}
/**
* Load one JS synchronously
*/
function litespeed_load_one(e, resolve) {
console.log('[LiteSpeed] Load ', e);
var e2 = document.createElement('script');
e2.addEventListener('load', resolve);
e2.addEventListener('error', resolve);
var attrs = e.getAttributeNames();
attrs.forEach(aname => {
if (aname == 'type') return;
e2.setAttribute(aname == 'data-src' ? 'src' : aname, e.getAttribute(aname));
});
e2.type = 'text/javascript';
let is_inline = false;
// Inline script
if (!e2.src && e.textContent) {
e2.src = litespeed_inline2src(e.textContent);
// e2.textContent = e.textContent;
is_inline = true;
}
// Deploy to dom
e.after(e2);
e.remove();
// document.head.appendChild(e2);
// e2 = e.cloneNode(true)
// e2.setAttribute( 'type', 'text/javascript' );
// e2.setAttribute( 'data-delayed', '1' );
// Kick off resolve for inline
if (is_inline) resolve();
}
/**
* Prepare inline script
*/
function litespeed_inline2src(data) {
try {
var src = urlCreator.createObjectURL(
new Blob([data.replace(/^(?:<!--)?(.*?)(?:-->)?$/gm, '$1')], {
type: 'text/javascript',
}),
);
} catch (e) {
var src = 'data:text/javascript;base64,' + btoa(data.replace(/^(?:<!--)?(.*?)(?:-->)?$/gm, '$1'));
}
return src;
}