Hackfut Security File Manager
Current Path:
/home/haielekt/pasangac.com/wp-content/plugins/wp-rocket/assets/js
home
/
haielekt
/
pasangac.com
/
wp-content
/
plugins
/
wp-rocket
/
assets
/
js
/
📁
..
📄
browser-checker.js
(2.52 KB)
📄
browser-checker.min.js
(2.1 KB)
📄
cpcss-removal.js
(784 B)
📄
cpcss-removal.min.js
(667 B)
📄
elementor-animation.js
(1.64 KB)
📄
heartbeat.js
(0 B)
📁
lazyload
📄
lazyload-css.js
(1.88 KB)
📄
lazyload-css.js.min.map
(1.15 KB)
📄
lazyload-css.min.js
(1.83 KB)
📄
lazyload-css.min.js.map
(1.95 KB)
📄
lazyload-scripts.min.js
(9.52 KB)
📄
micromodal.min.js
(6.94 KB)
📄
preload-links.js
(5.7 KB)
📄
preload-links.min.js
(3.32 KB)
📄
wpr-admin-common.js
(1.6 KB)
📄
wpr-admin.js
(559.18 KB)
📄
wpr-admin.js.map
(564.37 KB)
📄
wpr-admin.js.min.map
(92.8 KB)
📄
wpr-admin.min.js
(90.24 KB)
📄
wpr-cpcss-heartbeat.js
(869 B)
📄
wpr-cpcss.js
(5.01 KB)
Editing: browser-checker.js
class RocketBrowserCompatibilityChecker { constructor( options ) { this.passiveSupported = false; this._checkPassiveOption( this ); this.options = this.passiveSupported ? options : false; } /** * Initializes browser check for addEventListener passive option. * * @link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support * @private * * @param self Instance of this object. * @returns {boolean} */ _checkPassiveOption( self ) { try { const options = { // This function will be called when the browser attempts to access the passive property. get passive() { self.passiveSupported = true; return false; } }; window.addEventListener( 'test', null, options ); window.removeEventListener( 'test', null, options ); } catch ( err ) { self.passiveSupported = false; } } /** * Checks if the browser supports requestIdleCallback and cancelIdleCallback. If no, shims its behavior with a polyfills. * * @link @link https://developers.google.com/web/updates/2015/08/using-requestidlecallback */ initRequestIdleCallback() { if ( ! 'requestIdleCallback' in window ) { window.requestIdleCallback = ( cb ) => { const start = Date.now(); return setTimeout( () => { cb( { didTimeout: false, timeRemaining: function timeRemaining() { return Math.max( 0, 50 - ( Date.now() - start ) ); } } ); }, 1 ); }; } if ( ! 'cancelIdleCallback' in window ) { window.cancelIdleCallback = ( id ) => clearTimeout( id ); } } /** * Detects if data saver mode is on. * * @link https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/save-data/#detecting_the_save-data_setting * * @returns {boolean|boolean} */ isDataSaverModeOn() { return ( 'connection' in navigator && true === navigator.connection.saveData ); } /** * Checks if the browser supports link prefetch. * * @returns {boolean|boolean} */ supportsLinkPrefetch() { const elem = document.createElement( 'link' ); return ( elem.relList && elem.relList.supports && elem.relList.supports( 'prefetch' ) && window.IntersectionObserver && 'isIntersecting' in IntersectionObserverEntry.prototype ); } isSlowConnection() { return ( 'connection' in navigator && 'effectiveType' in navigator.connection && ( '2g' === navigator.connection.effectiveType || 'slow-2g' === navigator.connection.effectiveType ) ) } }
Upload File
Create Folder