| Product Weight |
220g
{“prefetch”:[{“source”:”document”,”where”:{“and”:[{“href_matches”:”/*”},{“not”:{“href_matches”:[“/wp-*.php”,”/wp-admin/*”,”/wp-content/uploads/*”,”/wp-content/*”,”/wp-content/plugins/*”,”/wp-content/themes/havit-refresh/*”,”/wp-content/themes/emall/*”,”/*\?(.+)”]}},{“not”:{“selector_matches”:”a[rel~=”nofollow”]”}},{“not”:{“selector_matches”:”.no-prefetch, .no-prefetch a”}}]},”eagerness”:”conservative”}]} window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘G-43KGFR03GL’);{“@context”:”https://schema.org/”,”@graph”:[{“@context”:”https://schema.org/”,”@type”:”BreadcrumbList”,”itemListElement”:[{“@type”:”ListItem”,”position”:1,”item”:{“name”:”Home”,”@id”:”https://havit.ke”}},{“@type”:”ListItem”,”position”:2,”item”:{“name”:”Accessories”,”@id”:”https://havit.ke/categories/accessories/”}},{“@type”:”ListItem”,”position”:3,”item”:{“name”:”HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,”@id”:”https://havit.ke/product/havit-neogrip-rgb-wireless-bluetooth-gamepad-g180bt/”}}]},{“@context”:”https://schema.org/”,”@type”:”Product”,”@id”:”https://havit.ke/product/havit-neogrip-rgb-wireless-bluetooth-gamepad-g180bt/#product”,”name”:”HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,”url”:”https://havit.ke/product/havit-neogrip-rgb-wireless-bluetooth-gamepad-g180bt/”,”description”:”Take your mobile gaming to the next level with the HAVIT NeoGrip RGB Wireless Bluetooth Gamepad?a feature-packed controller designed for gamers who demand precision, comfort, and style. With RGB lighting, turbo and auto functions, a built-in 800mAh rechargeable battery, and comfortable ergonomics, the NeoGrip delivers console-quality control for your mobile games, cloud gaming services, and emulators. Affordable, versatile, and packed with features, it’s the ultimate mobile gaming companion.nnKey FeaturesnnnnFeaturenSpecificationnnnnnSpecial FeaturesnRGB Light, Turbo & Auto Function, 3-Gear Turbo AdjustmentnnnBatteryn800mAh RechargeablennnConnectornType-CnnnProduct Sizen152 x 115 x 58mmnnnProduct Weightn220g”,”image”:”https://havit.ke/wp-content/uploads/2026/03/01JXHZ88VSG8KM74CJ2F7FD6AB.webp”,”sku”:”G180BT”,”offers”:[{“@type”:”Offer”,”priceSpecification”:[{“@type”:”UnitPriceSpecification”,”price”:”4640″,”priceCurrency”:”KES”,”valueAddedTaxIncluded”:false,”validThrough”:”2027-12-31″},{“@type”:”UnitPriceSpecification”,”price”:”6496″,”priceCurrency”:”KES”,”valueAddedTaxIncluded”:false,”validThrough”:”2027-12-31″,”priceType”:”https://schema.org/ListPrice”}],”priceValidUntil”:”2027-12-31″,”availability”:”https://schema.org/InStock”,”url”:”https://havit.ke/product/havit-neogrip-rgb-wireless-bluetooth-gamepad-g180bt/”,”seller”:{“@type”:”Organization”,”name”:”HAVITu00ae Official Store – Electronics Online Shopping | HAVIT Electronic”,”url”:”https://havit.ke”}}],”brand”:{“@type”:”Brand”,”name”:”HAVIT”,”logo”:”https://havit.ke/wp-content/uploads/2024/11/Logo_Havit-1-1.png”}}]}

const lazyloadRunObserver = () => {
const lazyloadBackgrounds = document.querySelectorAll( `.e-con.e-parent:not(.e-lazyloaded)` );
const lazyloadBackgroundObserver = new IntersectionObserver( ( entries ) => {
entries.forEach( ( entry ) => {
if ( entry.isIntersecting ) {
let lazyloadBackground = entry.target;
if( lazyloadBackground ) {
lazyloadBackground.classList.add( ‘e-lazyloaded’ );
}
lazyloadBackgroundObserver.unobserve( entry.target );
}
});
}, { rootMargin: ‘200px 0px 200px 0px’ } );
lazyloadBackgrounds.forEach( ( lazyloadBackground ) => {
lazyloadBackgroundObserver.observe( lazyloadBackground );
} );
};
const events = [
‘DOMContentLoaded’,
‘elementor/lazyload/observe’,
];
events.forEach( ( event ) => {
document.addEventListener( event, lazyloadRunObserver );
} );
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, ‘woocommerce-js’);
document.body.className = c;
})(); .e-heading-base a, .e-paragraph-base a { all: unset; cursor: pointer; }form[data-element_type=”e-form”].form-state-success [data-element_type=”e-form-success-message”],form[data-element_type=”e-form”].form-state-error [data-element_type=”e-form-error-message”]{ display: block; }
/*# sourceURL=elementor-frontend-inline-css */ wp.i18n.setLocaleData( { ‘text directionu0004ltr’: [ ‘ltr’ ] } );
//# sourceURL=wp-i18n-js-after var wpcf7 = {
“api”: {
“root”: “https://havit.ke/wp-json/”,
“namespace”: “contact-form-7/v1”
},
“cached”: 1
};
//# sourceURL=contact-form-7-js-before var themesky_params = {“ajax_uri”:”/wp-admin/admin-ajax.php”,”blog_nonce”:”771276c90e”,”product_tabs_nonce”:”706f8f3516″,”filtered_product_nonce”:”c92ecb7e3a”,”elementor_lazy_load_nonce”:”9aa69ec6c6″};
//# sourceURL=ts-script-js-extra var wc_single_product_params = {“i18n_required_rating_text”:”Please select a rating”,”i18n_rating_options”:[“1 of 5 stars”,”2 of 5 stars”,”3 of 5 stars”,”4 of 5 stars”,”5 of 5 stars”],”i18n_product_gallery_trigger_text”:”View full-screen image gallery”,”review_rating_required”:”yes”,”flexslider”:{“rtl”:false,”animation”:”fade”,”smoothHeight”:false,”directionNav”:true,”controlNav”:”thumbnails”,”slideshow”:false,”animationSpeed”:0,”animationLoop”:false,”allowOneSlide”:false},”zoom_enabled”:”1″,”zoom_options”:[],”photoswipe_enabled”:”1″,”photoswipe_options”:{“shareEl”:false,”closeOnScroll”:false,”history”:false,”hideAnimationDuration”:0,”showAnimationDuration”:0},”flexslider_enabled”:”1″};
//# sourceURL=wc-single-product-js-extra var wc_facebook_signals_params = {“ajax_url”:”https://havit.ke/wp-admin/admin-ajax.php”,”nonce”:”6a132dc7ea”,”action”:”wc_facebook_update_signals_state”};
//# sourceURL=wc-facebook-signals-js-extra var wc_order_attribution = {“params”:{“lifetime”:1.0e-5,”session”:30,”base64″:false,”ajaxurl”:”https://havit.ke/wp-admin/admin-ajax.php”,”prefix”:”wc_order_attribution_”,”allowTracking”:true},”fields”:{“source_type”:”current.typ”,”referrer”:”current_add.rf”,”utm_campaign”:”current.cmp”,”utm_source”:”current.src”,”utm_medium”:”current.mdm”,”utm_content”:”current.cnt”,”utm_id”:”current.id”,”utm_term”:”current.trm”,”utm_source_platform”:”current.plt”,”utm_creative_format”:”current.fmt”,”utm_marketing_tactic”:”current.tct”,”session_entry”:”current_add.ep”,”session_start_time”:”current_add.fd”,”session_pages”:”session.pgs”,”session_count”:”udata.vst”,”user_agent”:”udata.uag”}};
//# sourceURL=wc-order-attribution-js-extra if (typeof clientParamBuilder !== “undefined” && !/(?:^|;s*)wc_facebook_signals_state=held(?:;|$)/.test(document.cookie)) {
clientParamBuilder.processAndCollectAllParams(window.location.href);
}
//# sourceURL=facebook-capi-param-builder-js-after _stq = window._stq || [];
_stq.push([ “view”, {“v”:”ext”,”blog”:”248019942″,”post”:”17987″,”tz”:”3″,”srv”:”havit.ke”,”j”:”1:15.7.1″} ]);
_stq.push([ “clickTrackerInit”, “248019942”, “17987” ]);
//# sourceURL=jetpack-stats-js-before var emall_params = {“ajax_url”:”/wp-admin/admin-ajax.php”,”sticky_header”:”1″,”menu_overlay”:”1″,”ajax_search”:”1″,”show_cart_after_adding”:”0″,”ajax_add_to_cart”:”0″,”add_to_cart_effect”:”none”,”shop_loading_type”:”default”,”flexslider”:{“rtl”:false,”animation”:”fade”,”smoothHeight”:true,”directionNav”:true,”controlNav”:”thumbnails”,”slideshow”:false,”animationSpeed”:500,”animationLoop”:false,”allowOneSlide”:false},”zoom_options”:[],”slider_options”:{“loop”:1,”auto_play”:1,”show_nav”:1,”show_dots”:0},”search_nonce”:”9690ceab9f”,”quickshop_nonce”:”cb1b874bd4″,”addtocart_nonce”:”dbd2acdc8f”,”update_cart_nonce”:”ead7dcb688″,”product_video_nonce”:”bec49831ed”};
//# sourceURL=emall-script-js-extra var havitRefreshSearch = {“ajaxUrl”:”https://havit.ke/wp-admin/admin-ajax.php”,”nonce”:”9e92c651ea”,”minimumCharacters”:”2″};
//# sourceURL=havit-refresh-navigation-js-extra /* WooCommerce Facebook Integration Event Tracking */
fbq(‘set’, ‘agent’, (function(){var a=’woocommerce_0-10.7.0-3.7.6′;if(window.__wc_fb_page_generated&&(Math.floor(Date.now()/1000)-window.__wc_fb_page_generated)>1800){a=a.replace(/(d+.d+.d+)/,’$1_c’);}return a;})(), ‘381942017813996’);
window.wcFacebookPixelFiredEvents = window.wcFacebookPixelFiredEvents || {};
if (!window.wcFacebookPixelFiredEvents[“54c1c102-084e-4142-8ee6-4143f8fc089d”]) {
window.wcFacebookPixelFiredEvents[“54c1c102-084e-4142-8ee6-4143f8fc089d”] = true;
var isStale = window.__wc_fb_page_generated && (Math.floor(Date.now()/1000) – window.__wc_fb_page_generated) > 1800;
if (window.FacebookSignals && typeof window.FacebookSignals.trackEvent === ‘function’) {
window.FacebookSignals.trackEvent(‘PageView’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”
}, null, ‘track’, isStale ? null : “54c1c102-084e-4142-8ee6-4143f8fc089d”);
} else if (isStale) {
fbq(‘track’, ‘PageView’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”
});
} else {
fbq(‘track’, ‘PageView’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”
}, {
“eventID”: “54c1c102-084e-4142-8ee6-4143f8fc089d”
});
}
}
/* WooCommerce Facebook Integration Event Tracking */
fbq(‘set’, ‘agent’, (function(){var a=’woocommerce_0-10.7.0-3.7.6′;if(window.__wc_fb_page_generated&&(Math.floor(Date.now()/1000)-window.__wc_fb_page_generated)>1800){a=a.replace(/(d+.d+.d+)/,’$1_c’);}return a;})(), ‘381942017813996’);
window.wcFacebookPixelFiredEvents = window.wcFacebookPixelFiredEvents || {};
if (!window.wcFacebookPixelFiredEvents[“bbbcf062-2880-4d44-b7a5-9ca0aa223c90”]) {
window.wcFacebookPixelFiredEvents[“bbbcf062-2880-4d44-b7a5-9ca0aa223c90”] = true;
var isStale = window.__wc_fb_page_generated && (Math.floor(Date.now()/1000) – window.__wc_fb_page_generated) > 1800;
if (window.FacebookSignals && typeof window.FacebookSignals.trackEvent === ‘function’) {
window.FacebookSignals.trackEvent(‘ViewContent’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”,
“content_name”: “HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,
“content_ids”: “[“17987″]”,
“content_type”: “product”,
“contents”: “[{“id”:”17987″,”quantity”:1}]”,
“content_category”: “Accessories”,
“value”: “4640”,
“currency”: “KES”
}, null, ‘track’, isStale ? null : “bbbcf062-2880-4d44-b7a5-9ca0aa223c90”);
} else if (isStale) {
fbq(‘track’, ‘ViewContent’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”,
“content_name”: “HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,
“content_ids”: “[“17987″]”,
“content_type”: “product”,
“contents”: “[{“id”:”17987″,”quantity”:1}]”,
“content_category”: “Accessories”,
“value”: “4640”,
“currency”: “KES”
});
} else {
fbq(‘track’, ‘ViewContent’, {
“source”: “woocommerce_0”,
“version”: “10.7.0”,
“pluginVersion”: “3.7.6”,
“content_name”: “HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,
“content_ids”: “[“17987″]”,
“content_type”: “product”,
“contents”: “[{“id”:”17987″,”quantity”:1}]”,
“content_category”: “Accessories”,
“value”: “4640”,
“currency”: “KES”
}, {
“eventID”: “bbbcf062-2880-4d44-b7a5-9ca0aa223c90”
});
}
}
//# sourceURL=facebook-for-woocommerce-inline-js-after jQuery.uiBackCompat = true;
//# sourceURL=jquery-ui-core-js-before var elementorFrontendConfig = {“environmentMode”:{“edit”:false,”wpPreview”:false,”isScriptDebug”:false},”i18n”:{“shareOnFacebook”:”Share on Facebook”,”shareOnTwitter”:”Share on Twitter”,”pinIt”:”Pin it”,”download”:”Download”,”downloadImage”:”Download image”,”fullscreen”:”Fullscreen”,”zoom”:”Zoom”,”share”:”Share”,”playVideo”:”Play Video”,”previous”:”Previous”,”next”:”Next”,”close”:”Close”,”a11yCarouselPrevSlideMessage”:”Previous slide”,”a11yCarouselNextSlideMessage”:”Next slide”,”a11yCarouselFirstSlideMessage”:”This is the first slide”,”a11yCarouselLastSlideMessage”:”This is the last slide”,”a11yCarouselPaginationBulletMessage”:”Go to slide”},”is_rtl”:false,”breakpoints”:{“xs”:0,”sm”:480,”md”:768,”lg”:993,”xl”:1440,”xxl”:1600},”responsive”:{“breakpoints”:{“mobile”:{“label”:”Mobile Portrait”,”value”:767,”default_value”:767,”direction”:”max”,”is_enabled”:true},”mobile_extra”:{“label”:”Mobile Landscape”,”value”:767,”default_value”:880,”direction”:”max”,”is_enabled”:false},”tablet”:{“label”:”Tablet Portrait”,”value”:992,”default_value”:1024,”direction”:”max”,”is_enabled”:true},”tablet_extra”:{“label”:”Tablet Landscape”,”value”:1200,”default_value”:1200,”direction”:”max”,”is_enabled”:true},”laptop”:{“label”:”Laptop”,”value”:1440,”default_value”:1366,”direction”:”max”,”is_enabled”:true},”widescreen”:{“label”:”Widescreen”,”value”:2400,”default_value”:2400,”direction”:”min”,”is_enabled”:false}},”hasCustomBreakpoints”:true},”version”:”4.0.7″,”is_static”:false,”experimentalFeatures”:{“e_font_icon_svg”:true,”additional_custom_breakpoints”:true,”container”:true,”nested-elements”:true,”e_atomic_elements”:true,”atomic_widgets_should_enforce_capabilities”:true,”editor_mcp”:true,”e_bc_migrations”:true,”e_classes”:true,”global_classes_should_enforce_capabilities”:true,”e_variables”:true,”e_variables_manager”:true,”e_opt_in_v4_page”:true,”e_opt_in_v4″:true,”e_components”:true,”e_interactions”:true,”e_widget_creation”:true,”import-export-customization”:true},”urls”:{“assets”:”https://havit.ke/wp-content/plugins/elementor/assets/”,”ajaxurl”:”https://havit.ke/wp-admin/admin-ajax.php”,”uploadUrl”:”https://havit.ke/wp-content/uploads”},”nonces”:{“floatingButtonsClickTracking”:”3087ce15e6″,”atomicFormsSendForm”:”9dee132f93″},”swiperClass”:”swiper”,”settings”:{“page”:[],”editorPreferences”:[]},”kit”:{“viewport_tablet”:992,”active_breakpoints”:[“viewport_mobile”,”viewport_tablet”,”viewport_tablet_extra”,”viewport_laptop”],”viewport_laptop”:1440,”stretched_section_container”:”#main”,”viewport_mobile”:767,”viewport_tablet_extra”:1200,”lightbox_enable_counter”:”yes”,”lightbox_enable_fullscreen”:”yes”,”lightbox_enable_zoom”:”yes”,”lightbox_enable_share”:”yes”,”lightbox_title_src”:”title”,”lightbox_description_src”:”description”},”post”:{“id”:17987,”title”:”HAVIT%20NeoGrip%20RGB%20Wireless%20Bluetooth%20Gamepad%20-%20G180BT%20-%20HAVIT%C2%AE%20Official%20Store%20-%20Electronics%20Online%20Shopping%20%7C%20HAVIT%20Electronic”,”excerpt”:””,”featuredImage”:”https://havit.ke/wp-content/uploads/2026/03/01JXHZ88VSG8KM74CJ2F7FD6AB-1024×1024.webp”}};
//# sourceURL=elementor-frontend-js-before document.addEventListener( ‘wpcf7submit’, function ( event ) {
var detail = event.detail || {};
if ( ‘mail_sent’ !== detail.status ) {
return;
}
var apiResponse = detail.apiResponse || {};
if ( ! apiResponse.fb_pxl_code ) {
return;
}
try {
var s = document.createElement( ‘script’ );
s.textContent = apiResponse.fb_pxl_code;
document.head.appendChild( s );
} catch ( e ) {
// no-op
}
}, false );
(function() {
window.wcAnalytics = window.wcAnalytics || {};
const wcAnalytics = window.wcAnalytics;
// Set the assets URL for webpack to find the split assets.
wcAnalytics.assets_url = ‘https://havit.ke/wp-content/plugins/jetpack/jetpack_vendor/automattic/woocommerce-analytics/src/../build/’;
// Set the REST API tracking endpoint URL.
wcAnalytics.trackEndpoint = “https://havit.ke/wp-json/woocommerce-analytics/v1/track”;
// Set common properties for all events.
wcAnalytics.commonProps = {“session_id”:null,”landing_page”:null,”is_engaged”:null,”ui”:0,”blog_id”:248019942,”store_id”:”401508a0-bde0-4346-a0af-ba942a37e67e”,”url”:”https://havit.ke”,”woo_version”:”10.7.0″,”wp_version”:”7.1″,”store_admin”:0,”device”:”desktop”,”store_currency”:”KES”,”timezone”:”Africa/Nairobi”,”is_guest”:1,”_via_ua”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36″,”_via_ip”:”105.165.208.121″,”_lg”:”en-US”,”_dr”:”https://havit.ke/product/havit-g158bt-corestrike-pro-controller/”,”_dl”:”https://havit.ke/product/havit-neogrip-rgb-wireless-bluetooth-gamepad-g180bt/”,”_via_ref”:”https://havit.ke/product/havit-g158bt-corestrike-pro-controller/”};
// Set the event queue.
wcAnalytics.eventQueue = [{“eventName”:”product_view”,”props”:{“pi”:17987,”pn”:”HAVIT NeoGrip RGB Wireless Bluetooth Gamepad – G180BT”,”pc”:”Accessories”,”pp”:”4640″,”pt”:”simple”}}];
// Features.
wcAnalytics.features = {
ch: false,
sessionTracking: false,
proxy: false,
};
wcAnalytics.breadcrumbs = [“Shop”,”Accessories”,”HAVIT NeoGrip RGB Wireless Bluetooth Gamepad u0026#8211; G180BT”];
// Page context flags.
wcAnalytics.pages = {
isAccountPage: false,
isCart: false,
};
})(); window.lazyLoadOptions=Object.assign({},{threshold:300},window.lazyLoadOptions||{});!function(t,e){“object”==typeof exports&&”undefined”!=typeof module?module.exports=e():”function”==typeof define&&define.amd?define(e):(t=”undefined”!=typeof globalThis?globalThis:t||self).LazyLoad=e()}(this,function(){“use strict”;function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,a=arguments[e];for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t}).apply(this,arguments)}function o(t){return e({},at,t)}function l(t,e){return t.getAttribute(gt+e)}function c(t){return l(t,vt)}function s(t,e){return function(t,e,n){e=gt+e;null!==n?t.setAttribute(e,n):t.removeAttribute(e)}(t,vt,e)}function i(t){return s(t,null),0}function r(t){return null===c(t)}function u(t){return c(t)===_t}function d(t,e,n,a){t&&(void 0===a?void 0===n?t(e):t(e,n):t(e,n,a))}function f(t,e){et?t.classList.add(e):t.className+=(t.className?" ":"")+e}function _(t,e){et?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\s+)"+e+"(\s+|$)")," ").replace(/^s+/,"").replace(/s+$/,"")}function g(t){return t.llTempImage}function v(t,e){!e||(e=e._observer)&&e.unobserve(t)}function b(t,e){t&&(t.loadingCount+=e)}function p(t,e){t&&(t.toLoadCount=e)}function n(t){for(var e,n=[],a=0;e=t.children[a];a+=1)"SOURCE"===e.tagName&&n.push(e);return n}function h(t,e){(t=t.parentNode)&&"PICTURE"===t.tagName&&n(t).forEach(e)}function a(t,e){n(t).forEach(e)}function m(t){return!!t[lt]}function E(t){return t[lt]}function I(t){return delete t[lt]}function y(e,t){var n;m(e)||(n={},t.forEach(function(t){n[t]=e.getAttribute(t)}),e[lt]=n)}function L(a,t){var o;m(a)&&(o=E(a),t.forEach(function(t){var e,n;e=a,(t=o[n=t])?e.setAttribute(n,t):e.removeAttribute(n)}))}function k(t,e,n){f(t,e.class_loading),s(t,st),n&&(b(n,1),d(e.callback_loading,t,n))}function A(t,e,n){n&&t.setAttribute(e,n)}function O(t,e){A(t,rt,l(t,e.data_sizes)),A(t,it,l(t,e.data_srcset)),A(t,ot,l(t,e.data_src))}function w(t,e,n){var a=l(t,e.data_bg_multi),o=l(t,e.data_bg_multi_hidpi);(a=nt&&o?o:a)&&(t.style.backgroundImage=a,n=n,f(t=t,(e=e).class_applied),s(t,dt),n&&(e.unobserve_completed&&v(t,e),d(e.callback_applied,t,n)))}function x(t,e){!e||0<e.loadingCount||0<e.toLoadCount||d(t.callback_finish,e)}function M(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n}function N(t){return!!t.llEvLisnrs}function z(t){if(N(t)){var e,n,a=t.llEvLisnrs;for(e in a){var o=a[e];n=e,o=o,t.removeEventListener(n,o)}delete t.llEvLisnrs}}function C(t,e,n){var a;delete t.llTempImage,b(n,-1),(a=n)&&–a.toLoadCount,_(t,e.class_loading),e.unobserve_completed&&v(t,n)}function R(i,r,c){var l=g(i)||i;N(l)||function(t,e,n){N(t)||(t.llEvLisnrs={});var a="VIDEO"===t.tagName?"loadeddata":"load";M(t,a,e),M(t,"error",n)}(l,function(t){var e,n,a,o;n=r,a=c,o=u(e=i),C(e,n,a),f(e,n.class_loaded),s(e,ut),d(n.callback_loaded,e,a),o||x(n,a),z(l)},function(t){var e,n,a,o;n=r,a=c,o=u(e=i),C(e,n,a),f(e,n.class_error),s(e,ft),d(n.callback_error,e,a),o||x(n,a),z(l)})}function T(t,e,n){var a,o,i,r,c;t.llTempImage=document.createElement("IMG"),R(t,e,n),m(c=t)||(c[lt]={backgroundImage:c.style.backgroundImage}),i=n,r=l(a=t,(o=e).data_bg),c=l(a,o.data_bg_hidpi),(r=nt&&c?c:r)&&(a.style.backgroundImage='url("'.concat(r,'")'),g(a).setAttribute(ot,r),k(a,o,i)),w(t,e,n)}function G(t,e,n){var a;R(t,e,n),a=e,e=n,(t=Et[(n=t).tagName])&&(t(n,a),k(n,a,e))}function D(t,e,n){var a;a=t,(-1<It.indexOf(a.tagName)?G:T)(t,e,n)}function S(t,e,n){var a;t.setAttribute("loading","lazy"),R(t,e,n),a=e,(e=Et[(n=t).tagName])&&e(n,a),s(t,_t)}function V(t){t.removeAttribute(ot),t.removeAttribute(it),t.removeAttribute(rt)}function j(t){h(t,function(t){L(t,mt)}),L(t,mt)}function F(t){var e;(e=yt[t.tagName])?e(t):m(e=t)&&(t=E(e),e.style.backgroundImage=t.backgroundImage)}function P(t,e){var n;F(t),n=e,r(e=t)||u(e)||(_(e,n.class_entered),_(e,n.class_exited),_(e,n.class_applied),_(e,n.class_loading),_(e,n.class_loaded),_(e,n.class_error)),i(t),I(t)}function U(t,e,n,a){var o;n.cancel_on_exit&&(c(t)!==st||"IMG"===t.tagName&&(z(t),h(o=t,function(t){V(t)}),V(o),j(t),_(t,n.class_loading),b(a,-1),i(t),d(n.callback_cancel,t,e,a)))}function $(t,e,n,a){var o,i,r=(i=t,0<=bt.indexOf(c(i)));s(t,"entered"),f(t,n.class_entered),_(t,n.class_exited),o=t,i=a,n.unobserve_entered&&v(o,i),d(n.callback_enter,t,e,a),r||D(t,n,a)}function q(t){return t.use_native&&"loading"in HTMLImageElement.prototype}function H(t,o,i){t.forEach(function(t){return(a=t).isIntersecting||0<a.intersectionRatio?$(t.target,t,o,i):(e=t.target,n=t,a=o,t=i,void(r(e)||(f(e,a.class_exited),U(e,n,a,t),d(a.callback_exit,e,n,t))));var e,n,a})}function B(e,n){var t;tt&&!q(e)&&(n._observer=new IntersectionObserver(function(t){H(t,e,n)},{root:(t=e).container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}))}function J(t){return Array.prototype.slice.call(t)}function K(t){return t.container.querySelectorAll(t.elements_selector)}function Q(t){return c(t)===ft}function W(t,e){return e=t||K(e),J(e).filter(r)}function X(e,t){var n;(n=K(e),J(n).filter(Q)).forEach(function(t){_(t,e.class_error),i(t)}),t.update()}function t(t,e){var n,a,t=o(t);this._settings=t,this.loadingCount=0,B(t,this),n=t,a=this,Y&&window.addEventListener("online",function(){X(n,a)}),this.update(e)}var Y="undefined"!=typeof window,Z=Y&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),tt=Y&&"IntersectionObserver"in window,et=Y&&"classList"in document.createElement("p"),nt=Y&&1<window.devicePixelRatio,at={elements_selector:".lazy",container:Z||Y?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"litespeed-loading",class_loaded:"litespeed-loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},ot="src",it="srcset",rt="sizes",ct="poster",lt="llOriginalAttrs",st="loading",ut="loaded",dt="applied",ft="error",_t="native",gt="data-",vt="ll-status",bt=[st,ut,dt,ft],pt=[ot],ht=[ot,ct],mt=[ot,it,rt],Et={IMG:function(t,e){h(t,function(t){y(t,mt),O(t,e)}),y(t,mt),O(t,e)},IFRAME:function(t,e){y(t,pt),A(t,ot,l(t,e.data_src))},VIDEO:function(t,e){a(t,function(t){y(t,pt),A(t,ot,l(t,e.data_src))}),y(t,ht),A(t,ct,l(t,e.data_poster)),A(t,ot,l(t,e.data_src)),t.load()}},It=["IMG","IFRAME","VIDEO"],yt={IMG:j,IFRAME:function(t){L(t,pt)},VIDEO:function(t){a(t,function(t){L(t,pt)}),L(t,ht),t.load()}},Lt=["IMG","IFRAME","VIDEO"];return t.prototype={update:function(t){var e,n,a,o=this._settings,i=W(t,o);{if(p(this,i.length),!Z&&tt)return q(o)?(e=o,n=this,i.forEach(function(t){-1!==Lt.indexOf(t.tagName)&&S(t,e,n)}),void p(n,0)):(t=this._observer,o=i,t.disconnect(),a=t,void o.forEach(function(t){a.observe(t)}));this.loadAll(i)}},destroy:function(){this._observer&&this._observer.disconnect(),K(this._settings).forEach(function(t){I(t)}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;W(t,n).forEach(function(t){v(t,e),D(t,n,e)})},restoreAll:function(){var e=this._settings;K(e).forEach(function(t){P(t,e)})}},t.load=function(t,e){e=o(e);D(t,e)},t.resetStatus=function(t){i(t)},t}),function(t,e){"use strict";function n(){e.body.classList.add("litespeed_lazyloaded")}function a(){console.log("[LiteSpeed] Start Lazy Load"),o=new LazyLoad(Object.assign({},t.lazyLoadOptions||{},{elements_selector:"[data-lazyloaded]",callback_finish:n})),i=function(){o.update()},t.MutationObserver&&new MutationObserver(i).observe(e.documentElement,{childList:!0,subtree:!0,attributes:!0})}var o,i;t.addEventListener?t.addEventListener("load",a,!1):t.attachEvent("onload",a)}(window,document);
|
Reviews
There are no reviews yet.