Skip to content
25%OFF

Black Friday: 25% off every planUltimate $169 $125 once, for life

5days15hrs06min13secSee the offer
$44 OFF

Black Friday: $44 off lifetime accessUltimate $169 $125 once. No renewals.

5days15hrs06min13secClaim $44 off
Black Friday to Cyber Monday
5days15hrs06min13secGet lifetime for $125

6,500+ developers350+ genuine licenses7-day money-back guarantee

350+ genuine licenses with native auto-updatesDownload, install and update everything from one account

Talk to a real person

We reply in order during support hours

  • WhatsAppUsually the fastest reply
  • TelegramMessage us on Telegram
  • MessengerChat on Facebook
  • InstagramSend us a DM
Get lifetime — $169 $125See plans

Elementor Pro vs Bricks Builder in 2026: The Honest Comparison Nobody’s Making

By the GNU Elements Team • Updated March 2026 • 12 min read

Elementor Pro vs Bricks Builder — it’s the WordPress page builder debate that refuses to die. And frankly, most comparisons online get it wrong because they’re written by people who’ve already picked a side. I’ve been building WordPress sites since 2014 and I’ve shipped real projects with both builders extensively through 2025 and 2026. Here’s the comparison I wish someone had written for me two years ago — no bias, no affiliate agenda, just straight talk about when each one shines and when each one will frustrate you.

Let me start with something that might annoy both camps: neither builder is objectively “better.” They’re fundamentally different tools designed for different workflows. And after building dozens of client sites with each, I have strong opinions about the right context for both.

Table of Contents

The 30-Second Version

What Actually Changed in 2026

Performance: Real Benchmark Numbers

Ease of Use: Where Elementor Still Wins

Pricing: The Math That Actually Matters

Design Flexibility and Ecosystem

SEO and Core Web Vitals Impact

Quick Feature-by-Feature Breakdown

The Migration Question

So Who Should Use What?

How to Get Both Without Breaking the Bank

FAQ

Section divider

The 30-Second Version (If You’re in a Hurry)

Choose Elementor Pro if: you’re a beginner, your clients need to self-edit their sites, or you want the largest ecosystem of templates, add-ons, and third-party integrations. It’s the Honda Civic of page builders — dependable, widely supported, and familiar to almost everyone.

Choose Bricks Builder if: you care about performance, you’re comfortable with CSS concepts, or you’re a developer or agency that prioritizes clean code output and long-term maintainability. Think of it as the Porsche GT3 — built for speed and precision, but you need to know how to drive it.

Still here? Good. Let’s get into the specifics.

What Changed With Elementor Pro and Bricks Builder in 2026

If you read a comparison from 2023 or 2024, throw it out. Both WordPress page builders have evolved significantly, and some of the old arguments simply don’t hold anymore.

Elementor Pro: The Big Moves

Elementor introduced their “Copilot” AI assistant in late 2025, and it’s not just a gimmick. The AI generates wireframe layouts and suggests content matched to your niche, which genuinely speeds up the initial design phase. They’ve also continued improving performance with Optimized DOM Output and improved asset loading — narrowing the speed gap with Bricks.

The ecosystem remains unmatched. With over 10 million active installations, every WordPress plugin, tool, and third-party service integrates with Elementor first. That matters more than people realize when you’re deep into a complex client project and discover you need a specific integration that only supports Elementor.

Bricks Builder: The Rising Star

Bricks 2.0 was a genuine game-changer. The introduction of 50+ granular user permissions, the Command Palette for keyboard-driven workflows, and the visual CSS Grid Builder addressed the most common “power user” complaints. The interaction system — with triggers for hover, click, scroll, viewport entry, form events, and more — remains something Elementor simply can’t match.

One thing worth noting: Bricks is still owned by its original developer, Thomas Ehrig. Product decisions come from community feedback, not investor pressure. When you post in the Bricks forum, someone who actually builds the product might answer. That’s increasingly rare in the WordPress space.

Elementor Pro vs Bricks Builder Performance: Real Benchmark Numbers

This is where Bricks genuinely pulls ahead, and I’m not going to sugarcoat it.

On identical test environments — same hosting, same content, same design complexity — Bricks consistently produces faster sites. The reason is architectural: Bricks is built on Vue.js and generates significantly cleaner HTML output with fewer wrapper divs. Elementor, while improved over the years, still relies partly on jQuery and produces more nested markup and additional CSS/JavaScript.

PageSpeed Insights Mobile Score Comparison: Bricks Builder vs Elementor Pro (unoptimized) Typical PageSpeed Scores (Unoptimized, Same Content) Bricks Builder 92-98 Elementor Pro 72-85 Google PageSpeed Insights (Mobile) — No caching plugins installed With WP Rocket or LiteSpeed Cache, Elementor can reach 88-95 Bricks often hits 95-100 without any optimization plugins Bricks (out of the box) Elementor Pro (out of the box)

Here’s the nuance most reviews miss: the performance gap shrinks dramatically when you add a proper caching plugin like WP Rocket. A well-optimized Elementor site can absolutely score in the 90s on PageSpeed Insights. It just takes more effort to get there. Bricks gives you those numbers almost by default.

For an agency running 20+ client sites, that difference in optimization time per project adds up to real money. For a single small business website? It probably won’t move the needle.

Ease of Use: Where Elementor Pro Still Wins the Page Builder Battle

I’ll be honest: every time I hand off a Bricks-built site to a non-technical client, I hold my breath.

Elementor’s drag-and-drop editor is genuinely intuitive. Drag a widget, drop it where you want, click to edit. Need a three-column layout with images and text? It takes about 45 seconds, and your client can replicate it after a short tutorial. The template library offers hundreds of professionally designed pages and sections — you’re never building from scratch unless you want to.

Bricks follows a class-based approach that’s closer to how professional developers think about CSS. Want that same three-column layout? You’ll set up a Flexbox or Grid structure and configure CSS properties like flex-direction, gap, and align-items. It’s more powerful and produces cleaner code, but it demands you understand those underlying concepts.

My rule of thumb: if your client says “I want to add sections to my homepage sometimes,” go with Elementor. If your client says “build it and don’t let anyone touch it,” Bricks is probably the better foundation.

Elementor Pro vs Bricks Builder Pricing: The Long-Term Math

At first glance, Elementor Pro appears cheaper. The Essential plan starts at $59/year for one site. Bricks starts at $79/year for one site.

But here’s where pricing gets interesting for agencies and freelancers.

Bricks offers lifetime plans. The unlimited sites lifetime license costs $599 — one payment, no renewals. Elementor Pro has no lifetime option; you renew every single year. For anyone managing multiple WordPress websites, the math shifts fast:

3-Year Cost Comparison for 25 WordPress Sites: Elementor Pro vs Bricks Builder 3-Year Cost Comparison (25+ Sites) Elementor Pro Expert Plan (25 sites) $597 $199/year × 3 years Renews forever ↻ 5 years = $995 Bricks Builder Lifetime (unlimited sites) $599 One-time payment Never renews ✓ 5 years = still $599 From year 2 onward, Bricks saves $199/year versus Elementor for multi-site users

Over three years, the cost is nearly identical for 25-site users. But from year two onward, Bricks saves $199 annually — and with the lifetime plan, you’re covered for unlimited sites rather than just 25.

But here’s the question many freelancers and agencies are actually asking: “What if I could get both page builders for a fraction of those prices?” And the answer is — you can. I’ll explain how at the end.

Design Flexibility and WordPress Builder Ecosystem

Where Elementor Pro Dominates

Elementor’s third-party ecosystem is unmatched in 2026. Hundreds of add-on plugins — Essential Addons, Crocoblock JetPlugins, Ultimate Addons — extend its capabilities in every direction. Need a specific slider type? A complex mega menu? A conditional pricing table? Someone’s already built a widget for it.

The WooCommerce Builder is mature and battle-tested on millions of online stores. You can visually customize every shop page — product pages, archives, cart, checkout — without touching code. For e-commerce projects, this polish matters.

Where Bricks Builder Shines

Bricks takes a different approach: instead of relying on pre-built widgets, it gives you powerful low-level controls to build anything custom.

The interactions system is the standout. You can configure complex triggers (click, hover, scroll, viewport entry, form submission) paired with actions (show/hide elements, add CSS classes, execute JavaScript, manipulate attributes). Elementor’s interaction options are comparatively limited — mostly hover transforms and entrance animations.

The Query Loop Builder is another strength for dynamic content. You can visually query your WordPress database and display results — posts, custom post types, WooCommerce products — with complete control over the HTML output. You can even write custom PHP queries when the visual interface isn’t enough.

And here’s a recent development worth noting: Crocoblock’s JetPlugins now fully support Bricks Builder. If you were hesitant about Bricks because of its smaller ecosystem, this is a significant reason to reconsider.

SEO and Core Web Vitals: How Each Page Builder Affects Rankings

Google doesn’t care which WordPress page builder you use. Google cares about Core Web Vitals, clean HTML structure, and fast load times.

Bricks has a structural advantage here. Its clean code output means smaller page sizes, fewer render-blocking resources, and better Interaction to Next Paint (INP) scores. In 2026, INP has become a critical ranking factor — it measures how quickly a page responds to user interactions. Bricks’ Vue.js foundation handles this significantly better than Elementor’s jQuery-dependent approach, particularly on mobile devices where processing power is limited.

Does this mean Elementor sites can’t rank well? Not at all. Plenty of top-ranking websites run on Elementor Pro. But you’ll invest more optimization effort — caching with WP Rocket, asset optimization, lazy loading configuration — to match the out-of-the-box performance Bricks delivers for free.

For SEO-focused agencies competing on keywords where every Core Web Vitals point matters, this is a real consideration. For a local bakery’s website? Probably not the deciding factor.

Quick Feature-by-Feature Breakdown

Visual Editor

Elementor Pro: True drag-and-drop with inline editing. Extremely intuitive WYSIWYG experience. Widget panel organized by category. Best-in-class for non-technical users.

Bricks Builder: Three-column visual editor with more settings visible simultaneously but a smaller canvas area. Real-time preview. Steeper initial learning curve, but faster once you’re proficient — especially with the Command Palette keyboard shortcuts.

Code Quality and Output

Elementor Pro: Improved significantly with Optimized DOM Output. Still produces more wrapper divs and inline styles. ID-based styling means global changes require more effort across large sites.

Bricks Builder: Class-based styling mirroring professional CSS workflows. Minimal wrapper elements. Clean semantic HTML output. Global style changes are straightforward — modify a class once and it updates everywhere.

Dynamic Content and Custom Fields

Elementor Pro: Dynamic tags pull data from custom fields, post meta, user data, and WooCommerce. Loops are easy to set up visually. Strong compatibility with ACF Pro, JetEngine, and Meta Box.

Bricks Builder: Query Loop Builder offers more granular control with custom PHP query support. Conditional logic for showing/hiding any element is more powerful and built-in — no add-ons needed.

WooCommerce Integration

Elementor Pro: Mature WooCommerce Builder with dedicated widgets for all shop pages. Thoroughly documented and tested on millions of stores. Solid checkout customization.

Bricks Builder: Full WooCommerce Builder covering all store pages with pixel-perfect control. Less documented but produces cleaner storefront code, which can improve shop performance and conversion rates.

Responsive Design

Elementor Pro: Standard breakpoints (desktop, tablet, mobile) plus custom breakpoints in Pro. Responsive controls available on every widget setting.

Bricks Builder: Unlimited custom breakpoints. Uniquely supports both desktop-first and mobile-first approaches. You can edit on any breakpoint directly inside the builder — a genuine time-saver for responsive work.

The Migration Question Nobody Talks About

Here’s something critical: switching WordPress page builders is painful.

There’s no magic “import” button between Elementor and Bricks. You’ll rebuild pages manually. A 10-page business site? Maybe a weekend. A 200-page content site with complex WooCommerce templates? Weeks of work.

My advice: if your current Elementor setup works and clients are happy, don’t switch for the sake of switching. Start using Bricks for new projects where its strengths align with the requirements, and migrate older sites gradually during redesign cycles.

So Who Should Use Which Page Builder?

After years of building with both, here’s my honest recommendation:

Go with Elementor Pro if:

You build sites for clients who’ll self-edit content regularly. The learning curve is gentler, the template library is massive, and the ecosystem guarantees solutions for almost any requirement. Also the better choice for teams where not everyone is technically skilled — junior designers produce decent work faster with Elementor.

Go with Bricks Builder if:

Performance and clean code are non-negotiable. If you’re a developer or an agency that builds and maintains sites without giving editing access to clients, Bricks’ class-based workflow produces superior results faster. The lifetime pricing also makes it dramatically cheaper long-term for multi-site operations.

Or — use both.

Different projects have different needs. A client who self-edits gets Elementor. A performance-critical e-commerce build gets Bricks. Having both in your toolkit makes you more versatile.

How to Get Both Elementor Pro and Bricks Builder (For Less Than You’d Think)

Here’s what makes this whole debate less stressful: you don’t need to commit $200+/year to test which builder fits your workflow.

At GNU Elements, we include both Elementor Pro and Bricks Builder as genuine licenses with native auto-updates — along with 350+ other premium WordPress plugins like Crocoblock, WP Rocket, ACF Pro, Rank Math Pro, Imagify, and many more.

When I say “genuine licenses,” I mean official activation. Updates appear in your WordPress dashboard automatically, exactly like purchasing directly from the developer. No manual ZIP uploads. No nulled files with security risks. Just native one-click updates from your dashboard.

The cost? $169 lifetime for unlimited domains.

For perspective: Elementor Pro alone costs $59-$199/year. Bricks costs $79-$599. Even at the cheapest single-site tiers, one year of both costs $138 — and you only cover one site each. With GNU Elements, you get both builders plus 350+ additional genuine licenses for a one-time payment that’s less than most people spend on a single plugin subscription per year.

Try both on a real project. Build the same page in Elementor and Bricks. See which workflow clicks. That’s the kind of informed decision that shouldn’t cost hundreds to discover.

→ Get Elementor Pro + Bricks Builder + 350 more genuine licenses — $169 Lifetime

The Full Picture: WordPress Plugin Costs Add Up Fast

If you’re a freelancer or small agency, annual plugin licenses compound quickly. A typical professional WordPress stack includes a page builder ($59-$599), Crocoblock JetPlugins ($239/year), WP Rocket ($59/year), ACF Pro ($49/year), Rank Math Pro ($79/year), and a forms plugin like Gravity Forms ($59/year). That’s easily $500-$1,000+ per year — before hosting, domains, or design assets.

This is exactly why genuine license platforms exist. Instead of juggling a dozen renewal dates and separate dashboards, you get everything under one roof. And because these are genuine licenses — not nulled or modified GPL files — your WordPress dashboard handles updates natively. No security risks, no manual uploads, no wondering if the next update will break your site.

[internal link: How auto-updates work with genuine licenses]

Final Verdict on Elementor Pro vs Bricks Builder

Both Elementor Pro and Bricks Builder are excellent WordPress page builders in 2026. The WordPress community is better for having both pushing each other to improve.

If forced to pick one: for pure performance and long-term maintainability, Bricks has the edge. For client-friendliness and ecosystem depth, Elementor Pro remains the safer choice.

But really — the smartest move is to have access to both and choose per project. Your clients’ needs should dictate your tool choice, not your license subscriptions.

Build wisely.

Frequently Asked Questions

Is Bricks Builder faster than Elementor Pro in 2026?

Yes, Bricks generally produces faster sites out of the box thanks to its Vue.js architecture and cleaner HTML output. Without caching plugins, Bricks typically scores 92-98 on mobile PageSpeed while Elementor scores 72-85. With proper optimization (WP Rocket, LiteSpeed Cache), Elementor can reach 88-95 — but that requires additional configuration that Bricks doesn’t need.

Does Elementor Pro have a lifetime license option?

No. Elementor Pro only offers annual subscriptions, starting at $59/year for one site. There is no lifetime purchase available. Bricks Builder offers a lifetime plan for unlimited sites at $599 one-time.

Can I use Elementor Pro and Bricks Builder on unlimited domains?

Individually, both builders offer multi-site plans that get expensive fast. Through GNU Elements, you can access genuine licenses for both — with native auto-updates — for unlimited domains at $169 lifetime. That includes 350+ other premium WordPress plugins as well.

Which WordPress page builder is better for SEO in 2026?

Bricks has a structural SEO advantage due to cleaner code, smaller page sizes, and better Core Web Vitals scores — particularly Interaction to Next Paint (INP). However, optimized Elementor sites rank just as well. The difference matters most on competitive keywords where every performance point counts.

Is it hard to switch from Elementor to Bricks Builder?

Yes. There’s no automatic migration tool between page builders. Pages must be rebuilt manually. A small site takes a weekend; a large site with WooCommerce could take weeks. Start using Bricks for new projects rather than migrating existing ones, unless you’re planning a full redesign anyway.

What is the cheapest way to get both Elementor Pro and Bricks Builder?

The most cost-effective option is a GPL platform offering genuine licenses. GNU Elements includes both builders with native auto-updates plus 350+ other premium plugins for $169 lifetime on unlimited domains.

About the Author

This article was written by the GNU Elements team. We’ve been working with WordPress professionally since 2014, building sites with every major page builder including Elementor, Bricks, Divi, Oxygen, and Beaver Builder. GNU Elements provides 350+ genuine WordPress plugin licenses with native auto-updates to 2,500+ developers worldwide. Questions? Join our Telegram community.

(2.6.0), so the server can tell which // pages that started loading reached this point. var pid = /^[a-f0-9]{16}$/.test(window.GNU_CPID || '') ? window.GNU_CPID : ''; // 2.11.1: automated browser (same rule as GNU Landing 1.6.0, decided again by the server). // A bot sends only its first page view, with the signals; nothing else reaches Insights. // What the page sends to Meta is not touched. var bx = null; try { bx = (function(){var n=navigator,s=window.screen||{},u=n.userAgent||"",o={wd:n.webdriver===true?1:0,sw:+s.width||0,sh:+s.height||0,iw:window.innerWidth||0,ih:window.innerHeight||0,tp:+n.maxTouchPoints||0,gl:window.GNUL_BOT===1?1:0};o.m=/Mobi|Android|iPhone|iPad|iPod|Tablet|Silk|Kindle|PlayBook/i.test(u)||(/Macintosh/.test(u)&&o.tp>1)?1:0;o.b=o.wd||o.gl||(!o.m&&o.sw>0&&o.sh>0&&o.sw<=1024&&o.sh<=768&&o.sw===o.iw&&o.sh===o.ih)?1:0;return o;})(); } catch (e) { bx = null; } var isBot = !!(bx && bx.b); function body(events) { var b = { u: location.href.split('#')[0], r: document.referrer || '', ev: events }; if (test) { b.t = 1; } if (pid) { b.pid = pid; } return JSON.stringify(b); } function send(events, beacon) { if (isBot) { return; } var data = body(events); if (beacon && navigator.sendBeacon) { try { if (navigator.sendBeacon(C.url, new Blob([data], { type: 'application/json' }))) { return; } } catch (e) {} } try { if (window.fetch) { fetch(C.url, { method: 'POST', credentials: 'same-origin', keepalive: true, headers: { 'Content-Type': 'application/json' }, body: data }).catch(function () {}); } } catch (e) {} } function scrollDepth() { var doc = document.documentElement; var h = Math.max(doc.scrollHeight, document.body ? document.body.scrollHeight : 0); var seenTo = (window.pageYOffset || doc.scrollTop || 0) + (window.innerHeight || doc.clientHeight || 0); var pct = h > 0 ? Math.min(100, Math.round(100 * seenTo / h)) : 0; if (pct > maxScroll) { maxScroll = pct; } } function visible() { return visibleMs + (visibleFrom ? Date.now() - visibleFrom : 0); } // The page view goes out first, so the visit and its cookie exist before any click. var nowMs = function () { try { return Math.round(performance.now()); } catch (e) { return 0; } }; var first = { e: 'page_view', v: 0, a: 0, l: nowMs() }; var ctx = { w: window.innerWidth || 0, lang: (navigator.language || '').slice(0, 12) }; try { ctx.tz = Intl.DateTimeFormat().resolvedOptions().timeZone || ''; } catch (e) {} (function () { var b = JSON.parse(body([first])); b.ctx = ctx; if (bx) { b.bx = bx; } var data = JSON.stringify(b); try { if (window.fetch) { fetch(C.url, { method: 'POST', credentials: 'same-origin', keepalive: true, headers: { 'Content-Type': 'application/json' }, body: data }).catch(function () {}); } else if (navigator.sendBeacon) { navigator.sendBeacon(C.url, new Blob([data], { type: 'application/json' })); } } catch (e) {} })(); // Quality visit (2.7.0): 10 s visible and engaged (scrolled 30% or more, saw the plans // or clicked a plan). Once per browser session: recorded in Insights and sent to Meta // through PixelYourSite with a hidden button (custom event "Click on CSS selector" // #pys-hook-gnu-qv; values in #pys-p-gnu-qv-time, #pys-p-gnu-qv-scroll, #pys-p-gnu-qv-page). var qvDone = false; try { qvDone = sessionStorage.getItem('gnu_qv') === '1'; } catch (e) {} var engaged = false; var scrolled = false; function pysHook(secs) { var put = function (id, text) { var el = document.getElementById(id); if (!el) { el = document.createElement('span'); el.id = id; el.hidden = true; document.body.appendChild(el); } el.textContent = String(text); }; put('pys-p-gnu-qv-time', secs); put('pys-p-gnu-qv-scroll', maxScroll); put('pys-p-gnu-qv-page', path); var btn = document.getElementById('pys-hook-gnu-qv'); if (!btn) { btn = document.createElement('button'); btn.id = 'pys-hook-gnu-qv'; btn.type = 'button'; btn.hidden = true; btn.tabIndex = -1; document.body.appendChild(btn); } var tries = 0; (function fire() { if ((window.pysOptions && document.readyState === 'complete') || tries > 20) { try { btn.click(); } catch (e) {} return; } tries++; window.setTimeout(fire, 500); })(); } function maybeQualify() { if (qvDone || !document.body) { return; } var v = visible(); // Scrolled: the visitor moved the page (a short page shows 30% without scrolling). if (v < 10000 || !(engaged || (scrolled && maxScroll >= 30))) { return; } qvDone = true; try { sessionStorage.setItem('gnu_qv', '1'); } catch (e) {} send([{ e: 'quality_visit', v: v }], false); pysHook(Math.round(v / 1000)); } window.addEventListener('scroll', function () { if (!scrolled && (window.pageYOffset || document.documentElement.scrollTop || 0) > Math.min(300, (window.innerHeight || 800) * 0.3)) { scrolled = true; } if (!qvDone) { scrollDepth(); maybeQualify(); } }, { passive: true }); window.addEventListener('scroll', scrollDepth, { passive: true }); window.addEventListener('load', scrollDepth); scrollDepth(); function watchSections() { var names = Object.keys ? Object.keys(C.sections || {}) : []; names.forEach(function (name) { var el = null; try { el = document.querySelector(C.sections[name]); } catch (e) { el = null; } if (!el) { return; } var report = function () { if (seen[name]) { return; } seen[name] = 1; if (name === 'pricing') { engaged = true; maybeQualify(); } send([{ e: 'section_seen', d: name, v: Date.now() - t0 }], false); }; if (window.IntersectionObserver) { var io = new IntersectionObserver(function (entries) { entries.forEach(function (en) { if (en.isIntersecting) { report(); io.disconnect(); } }); }, { threshold: 0.3 }); io.observe(el); } else { window.addEventListener('scroll', function () { var r = el.getBoundingClientRect(); if (r.top < (window.innerHeight || 0) * 0.7 && r.bottom > 0) { report(); } }, { passive: true }); } }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', watchSections); } else { watchSections(); } document.addEventListener('click', function (ev) { var a = ev.target && ev.target.closest ? ev.target.closest('a[href]') : null; if (!a) { return; } var m = String(a.getAttribute('href') || '').match(/[?&](payment|upgrade)=(\d{1,10})/); if (!m) { return; } send([{ e: 'plan_click', k: m[1], d: m[2], v: Date.now() - t0 }], true); engaged = true; maybeQualify(); }, true); // Largest contentful paint of the page, sent with the exit. var lcp = 0; try { if (window.PerformanceObserver) { new PerformanceObserver(function (list) { var en = list.getEntries(); if (en.length) { lcp = Math.round(en[en.length - 1].startTime); } }).observe({ type: 'largest-contentful-paint', buffered: true }); } } catch (e) {} // Visible time so far at 3, 10, 30, 60, 120 and 300 s, so a visit whose exit never // arrives (common in the Instagram app) still has its time on the page. var marks = [3000, 10000, 30000, 60000, 120000, 300000]; var pingTimer = 0; function schedulePing() { window.clearTimeout(pingTimer); if (!marks.length || exited || !visibleFrom) { return; } pingTimer = window.setTimeout(function () { if (exited || !visibleFrom) { return; } scrollDepth(); var v = visible(); while (marks.length && marks[0] <= v + 50) { marks.shift(); } send([{ e: 'page_ping', v: v, s: maxScroll }], false); maybeQualify(); schedulePing(); }, Math.max(200, marks[0] - visible())); } schedulePing(); // Meta pixel and Google Analytics health of the page (2.6.0), checked at 4 s and, if // something is missing, again 8 s later or when the visitor leaves. var pxSent = false; function resourceSeen(re) { if (window.gnuResSeen && window.gnuResSeen(re)) { return true; } try { var list = performance.getEntriesByType ? performance.getEntriesByType('resource') : []; for (var i = 0; i < list.length; i++) { if (re.test(list[i].name)) { return true; } } } catch (e) {} return false; } function sendPixel(beacon) { if (pxSent || !window.gnuPx) { return; } pxSent = true; send([{ e: 'pixel', d: window.gnuPx(C.px || [], resourceSeen), v: Date.now() - t0 }], beacon); } window.setTimeout(function () { if (!window.gnuPx) { return; } if (window.gnuPx(C.px || [], resourceSeen).indexOf('0') === -1) { sendPixel(false); return; } window.setTimeout(function () { sendPixel(false); }, 8000); }, 4000); function exit() { if (exited) { return; } exited = true; scrollDepth(); window.clearTimeout(pingTimer); var out = [{ e: 'page_exit', v: visible(), s: maxScroll, l: lcp }]; if (!pxSent && Date.now() - t0 > 4000 && window.gnuPx) { pxSent = true; out.push({ e: 'pixel', d: window.gnuPx(C.px || [], resourceSeen), v: Date.now() - t0 }); } send(out, true); } document.addEventListener('visibilitychange', function () { if (document.visibilityState === 'hidden') { if (visibleFrom) { visibleMs += Date.now() - visibleFrom; visibleFrom = 0; } exit(); } else if (!visibleFrom) { visibleFrom = Date.now(); schedulePing(); } }); window.addEventListener('pagehide', exit); })(); //# sourceURL=gnu-checkout-pre-js-after