SShortSingh.
Back to feed

Developer Details How a Shopify Store's Mobile PageSpeed Score Rose From 34 to 96

0
·3 views

A full-stack Shopify developer describes a case study in which a client's production store raised its mobile PageSpeed Insights score from 34 to above 96 without removing essential features or tracking apps. The audit found failing Core Web Vitals, with slow Largest Contentful Paint, high Total Blocking Time, and layout shift, caused by render-blocking third-party scripts, unoptimized images, and leftover code from uninstalled apps. The fixes included deleting orphaned theme snippets, which removed 18 network requests and about 380 KB of JavaScript, and loading the hero banner eagerly with high fetch priority while lazy-loading below-the-fold content. Reserving aspect ratios for image containers and space for the announcement bar further reduced layout shift. The article notes that these changes cut Largest Contentful Paint from 5.8 seconds to 1.8 seconds and lowered Cumulative Layout Shift from 0.32 to 0.01.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

WordPress 7.0 Adds a Built-In AI Client and Connectors Screen

WordPress 7.0, codenamed Armstrong, was released on 20 May 2026, about six weeks behind its original schedule. The update adds a provider-agnostic AI Client to core, along with a Connectors screen for storing provider credentials and the JavaScript side of the Abilities API. Editor-facing changes include a command palette, a redesigned dashboard, a font management page, improved revisions, and new blocks. Real-time collaborative editing, the release's intended centerpiece, was pulled twelve days before launch because it was not ready, and the cycle returned to beta. Core ships no AI model or vendor key, and the AI features stay inactive until an administrator saves a provider key.

0
ProgrammingDEV Community ·

HotKV tops Redis, Valkey and Dragonfly on most commands in three-node cluster test

A benchmark compared HotKV, Redis, Valkey and Dragonfly deployed as three-node clusters on AWS servers, matching how Redis and Valkey are typically scaled across cores. HotKV posted the highest throughput on eight of nine tested commands, reaching 92.3 million GETs per second versus 57.3 million for Redis, 52.9 million for Valkey and 22.5 million for Dragonfly. Redis and Valkey led on APPEND, and some load generators were near their limits, so the reported figures are lower bounds. The authors argue that a cluster layout is fairer than the earlier single-instance tests, since Redis and Valkey run one thread per process. All tests ran with persistence disabled on 5 million keys with 256-byte values, using median results from two 15-second runs.

0
ProgrammingDEV Community ·

Python में long polling से निजी Telegram बॉट बनाने का तरीका

Telegram बॉट एक सुविधाजनक रिमोट कंट्रोल की तरह काम करता है, लेकिन इसका सार्वजनिक होना जोखिम पैदा करता है, क्योंकि कोई भी इसे संदेश भेज सकता है। यह लेख बताता है कि Python की स्टैंडर्ड लाइब्रेरी से long polling के जरिए ऐसा बॉट कैसे बनाया जाए जो केवल मालिक को जवाब दे। इसमें किसी पब्लिक पोर्ट, टनल या सर्टिफिकेट की जरूरत नहीं होती, और HTTP timeout को polling अवधि से लंबा रखने की सलाह दी गई है। मालिक की पहचान के लिए एक बार वाले पेयरिंग कोड का उपयोग होता है, जो 10 मिनट में समाप्त हो जाता है और संख्यात्मक user ID पर आधारित है। लेखक ने स्थानीय नकली सर्वर पर परीक्षण कर एक त्रुटि भी दिखाई, जिससे बॉट का अनुरोध दर बढ़कर बहुत ऊंचा हो गया था।

0
ProgrammingDEV Community ·

Canadian Tech Employers Face Employer Portal Steps for LMIA-Exempt Work Permits

Hiring a foreign national for a Canadian tech role may not require an LMIA, but many employer-specific permits still need an offer of employment submitted through IRCC's Employer Portal. A missing or inaccurate portal filing can delay an otherwise sound application. Employers must confirm the correct exemption code, issue a detailed signed employment agreement, submit the offer, and pay the current $230 compliance fee unless an exemption applies. The portal-generated offer number, which starts with an "A" followed by seven digits, is then given to the worker for use in the work permit application. Employers are advised to keep the portal listing, employment agreement and application consistent, with specific job details rather than generic templates.