Logo

dev-resources.site

for different kinds of informations.

Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals

Published at
12/27/2024
Categories
webdev
devtools
corewebvitals
performance
Author
shidhincr
Author
9 person written this
shidhincr
open
Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals

If you’re new to Live Core Web Vitals, check out my previous post:

What Are We Going to Do?

Namshi is one of the largest e-commerce websites in the UAE. Having worked at Namshi before, I was curious to test the Core Web Vitals scores of their mobile website and evaluate the user experience.

I started with their most visited webpage:

Namshi: Women's Fashion

Namshi web vitals

Using a high-speed Wi-Fi network and an M3 Pro MacBook, I conducted the test without any network or CPU throttling. The LCP (Largest Contentful Paint) score was 2.84 seconds, indicating room for improvement. The LCP metric primarily points to the banner image in the carousel.

Suggestions for improvements:

  • Use smaller placeholder images for banners.
  • Preload banner images(using link preload directive).

As I interacted with the page, the other metrics appeared satisfactory.

Namshi web vitals

Finding slowness

Namshi’s website heavily relies on modal components for features like Sort, Filter, and Search. While most modals opened and closed quickly, I noticed occasional slowness patterns. The INP (Interaction to Next Paint) score fluctuated between 60-100ms, which is generally acceptable.

Namshi web vitals

However, I discovered main-thread blocking code when toggling the “New Arrivals” modal and attempting to close it. This directly impacted the INP score. You can see the behavior in the video below:

A Worse Version?

Yes, I found an even worse scenario where the INP score turned completely RED.

This occurred when I opened the “Filter” modal, applied some filters, and then clicked “Reset Filters”. The page froze momentarily, resulting in a poor user experience.

Namshi web vitals

Suggestions for improvements:

  • Avoid blocking the main thread during user interactions, especially while applying filters.
  • Use Web Workers for computationally intensive tasks

Another Observation

By recording a Performance Profile, the issue was clearly visible in the flame chart. This method is invaluable for identifying and addressing performance bottlenecks.

Recording flame chart

devtools Article's
30 articles in total
Favicon
Simplify Email Testing with a Local Papercut SMTP Server Using Docker
Favicon
Performance Audit: Analyzing Namshi’s Mobile Website with Live Core Web Vitals
Favicon
How Daytona Helped Me Streamline My Development Workflow
Favicon
Live core web vitals (local metrics) in browser devtools
Favicon
15 Best Chrome Extensions for Devs 🧑‍💻
Favicon
My 2025 Tech Stack: Tools & Tech I'm Using This Year
Favicon
Chrome DevTools: Everything You Need to Know
Favicon
Latest DocWire SDK Release: Modern Features for C++ Developers
Favicon
LobeChat uses Namespace for action labels in DevTools configuration
Favicon
How to configure DevTools for your Zustand store?
Favicon
Interceptando Requisições com DevTools
Favicon
Validate Your FreeBSD rc.conf
Favicon
Proyect Fugu
Favicon
Introduction to Helm for Kubernetes
Favicon
It's 2AM. Your coffee's cold. The code is flowing.
Favicon
Manual Coding vs Auto-Generated Code: Which One Improves Code Quality?
Favicon
Setting Up a WordPress Development Environment with DDEV
Favicon
Automatizando Formulários com DevTools
Favicon
Full Page Screenshots in Chrome
Favicon
Browser Developer Tools: Essential Tips for Debugging and Optimizing Code
Favicon
A New Reliable AI Tool for Developers
Favicon
Push Express
Favicon
Best Open-Source React Dashboards on GitHub
Favicon
🚀 New open-source alert!
Favicon
Log Streaming - what we got wrong and how we fixed it
Favicon
Buildstash joins Techstars NYC
Favicon
Building a Developer-First SaaS
Favicon
The Changes tab in Google Chrome DevTools
Favicon
Why we're making Buildstash - build-to-release management for app and game devs
Favicon
Let me automate your Github project to showcase my platform!

Featured ones: