Got an Email Template, Landing page, or Banner requirement? Head to Email Mavlers

Mavlers Logo

How Mavlers' page speed optimization helped a client's HubSpot website cut load times by 30% and bring average speed under 3 seconds

Hero ImageHero ImageHero Image

About the client

Our client operates in the Education and Marketing industry and uses the platform to showcase webinars and educational videos. Their website needs to efficiently load multiple YouTube videos on a single page while retaining accurate video counts.

The challenge: User experience held back by lagging page speed

The brand approached Mavlers to optimize their HubSpot website's performance. They rely on their website to showcase webinars and educational videos.

The client's prime challenge was optimizing pages with multiple embedded YouTube videos without losing accurate video counts. At the same time, page speed - a critical factor shaping user experience and engagement - was falling short. Slow loading times, high bounce rates, and poor search engine visibility were impacting growth.

Challenge

These issues were not only making the browsing experience painfully slow but also hurting engagement and visibility.

Increasing page load speed would help them to create a faster browsing experience, keeping visitors engaged long enough to convert. Naturally, boosting search engine rankings, minimizing bounce rates, and offering better user experience would also follow as pivotal objectives.

The client needed more than a cosmetic fix; they needed a holistic performance solution

Meeting those objectives was a matter of targeted optimizations. It called for deep technical understanding. So the client turned to Mavlers for expert guidance and execution.

The specific goals included:

Speed icon

Improving page load speed and Google Core Web Vitals.

Duration icon

Reducing the average page load time to under 3 seconds.

Performance optimization illustration

Barriers Mavlers faced in getting the page speed flywheel moving

During the page speed optimization, we had to clear several roadblocks that stood in the way of better performance.


Oversized, uncompressed images were the first culprit. On top of that, the codebase was bloated, HTML, CSS, and JavaScript left unminified, creating unnecessary bulk.


Third-party scripts piled on, blocking rendering and throttling speed even further.


And to make matters worse, the site lacked proper caching. This forced returning visitors to reload each time.

Mavlers's page speed optimization approach that made the site load faster

Our strategy was methodical, moving from foundational fixes to complex, architectural improvements.

Note checked

Comprehensive audit and analysis

We began with a deep dive into the website's architecture using:

Google PageSpeed Insights & Lighthouse: To identify performance scoring opportunities.

WebPageTest: For granular waterfall analysis and diagnostic information.

Google Search Console: To assess Core Web Vitals field data.

HubSpot Audit Tools: To identify platform-specific bottlenecks.

Software audit illustration
Installation assistance
Note checked

Foundational optimizations

We implemented critical baseline optimizations to establish a performance floor:

Image & Video Optimization: Compressed and converted all images to WebP/AVIF formats, implemented lazy loading, and offloaded videos to optimized platforms.

Caching Strategy: Leveraged HubSpot's built-in caching and configured a robust CDN (Cloudflare) for global static asset delivery.

Code Minification: Minified all HTML, CSS, and JavaScript files to reduce file size and remove unnecessary code.

Font Optimization: Preconnected to Google Fonts, used font-display: swap, and preloaded critical font files.

Note checked

Advanced technical optimizations

Beyond the basics, we addressed complex, high-impact challenges that required custom-engineered solutions.

Strategic third-party script delay to reduce TBT

The Problem: A live chat widget loaded synchronously, blocking the main thread for over 2.1 seconds and crippling Time to Interactive (TBT).

Our Solution: We analyzed the loading waterfall and implemented an intelligent deferral strategy. The chat script was detached from the initial load

Big data cloud storage

The Result:

Circle

Reduced TBT by over 1.8 seconds.

Circle

Dramatically improved TTI without removing critical functionality.

Replacing a monolithic chat widget with a lightweight custom build

The Problem: The third-party chat widget was a feature-rich behemoth, loading over 600KB of render-blocking JavaScript.

Our Solution: We architected a minimal, API-driven client (~15KB) that loaded asynchronously. Only upon user click would a WebSocket connection to the provider's API be established.

Chat widget

The Result:

Circle

Eliminated ~600KB of blocking JavaScript.

Circle

Improved TTI by 1.5+ seconds on key pages.

Circle

Retained 100% of the chat functionality for users who needed it.

YouTube Iframe API orchestration

The Problem: A resource page with 15+ embedded YouTube videos loaded the player script separately for each video, creating 15+ redundant requests and over 3MB of weight.

Our Solution: We built a custom module and used the YouTube IFrame API to load the script once. Videos were represented by thumbnails; the full player was created dynamically only on user click.

Shield

The Result:

Circle

15+ Requests →
1 Request.

Circle

Eliminated ~3.8MB of redundant script load.

Circle

Improved Lighthouse Performance Score by 35+ points on the video gallery page.

Results: Faster pages, lower bounce, higher conversions

Once the optimizations went live, the improvements were immediate and measurable:

  • Page load speed improved by 30%, bringing average load times under 3 seconds.
  • Bounce rate dropped by 45%, as users stuck around instead of bouncing.
  • Core Web Vitals scores jumped by 51%, putting the site in Google's "good" zone.
Metric
Before
After
Improvement
Page Load Time
4.5 seconds
2.1 seconds
Faster
Mobile PageSpeed Score
28
85
+57 Points
Bounce Rate
72%
27%
-45%
Core Web Vitals
Poor
Good
51% Improvement
Organic Traffic
-
-
+40%

What other brands can learn from this optimization journey

The client's success with page speed optimization offers clear lessons for other teams tackling performance issues:

Speed isn't just a number

Speed isn't just a number

A couple of seconds off load time can be the difference between a bounce and a conversion.

Third-party scripts are the silent killers

Third-party scripts are the silent killers

Automated validation eliminated common errors, boosting confidence in reports and analytics.

Think in layers, not quick fixes

Think in layers, not quick fixes

Images, code, caching, and scripts all affect speed—tackle the whole system.

Platform expertise pays off

Platform expertise pays off

Every CMS has whims. Knowing how to optimize within them takes performance to the next level.

UX and speed have twin connections

UX and speed have twin connections

Users care about how a site feels. And speed is the bedrock of experience.

Tools are good, but not gospel

Tools are good, but not gospel

Google PageSpeed Insights help, but the ultimate test is how the site feels to your visitors.

By combining best practices with deep architectural optimizations, Mavlers turned the client's site into a fast, reliable, and scalable asset. The client could step back from technical concerns and work on growth.

So here's the bigger question—what's slowing your site right now, and what would it mean if every click felt instant?