SShortSingh.
Back to feed

Deferring Render-Blocking Scripts Lifts a Calculator Site to a 99 Desktop PageSpeed Score

0
·8 views

A developer running a small pay-calculator site found PageSpeed repeatedly flagging render-blocking JavaScript as the main performance problem. Adding the defer attribute to most scripts was the largest improvement, since it preserves execution order while downloading in parallel with HTML parsing. A tiny inline theme script was kept in place to avoid a layout flash, and the single shared stylesheet was trimmed by removing unused rules and inlining critical styles. Each change was re-tested three times on desktop, with the middle result taken, and the scripts change produced the biggest gain. The author concludes that on small sites, performance gains come mainly from removing work the browser doesn't need yet.

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 ·

Setting Up Arabic and RTL Moodle Sites: A Guide to Configuration and Theme Testing

Running Moodle in right-to-left languages such as Arabic, Hebrew, Persian or Urdu requires more than translating interface strings, since every screen must mirror correctly. The guide explains how to install language packs and configure default language, browser autodetection, and language menu options in Moodle's site administration. It recommends walking through the site as an admin, teacher and student to check headers, dashboards, course pages, forms, quizzes, messages and mobile layouts for correct alignment. It also advises choosing a PDF font that renders Arabic clearly and checking how mixed Arabic and English text displays, before testing any theme on a copy of the site prior to launch.

0
ProgrammingDEV Community ·

OFAC Fine Shows Sanctioned Supplier Evaded Name Screening Using Old Contact Details

The US Treasury's OFAC fined a twelve-person freight forwarder in Los Angeles $175,015 over a single $5,950 machine. The company imported a tablet-press from a Chinese supplier that was on the SDN list but had recently changed its name. The firm's name screening returned no match, so it proceeded with the purchase. The supplier's email address and phone number, both listed on its SDN entry, were unchanged and could have flagged it. The case has prompted an open-source screening tool to add checks on email, phone, website and crypto identifiers beyond names.

0
ProgrammingDEV Community ·

Ten GitHub Actions runner alternatives compared on per-minute pricing for 2026

A DEV Community comparison examines ten alternatives to GitHub-hosted Actions runners, which charge $0.006 per minute for a standard 2 vCPU Linux runner on private repositories once included usage runs out. The author notes that larger 4 and 8 vCPU runners drive costs up sharply, with 100,000 minutes on 8 vCPU reaching about $2,182 a month on GitHub Team. Hosted alternatives in the study cost between roughly $397 and $2,408 for the same workload, while RunsOn, which runs in the user's own AWS account, is estimated at about $210 plus a licence. The prices were checked on November 7, 2026, and reflect Linux x64 list rates in US dollars. The article also flags caveats such as per-minute rounding, eligibility limits for larger runners, and separately metered cache or storage fees.

0
ProgrammingDEV Community ·

OpenClaw offers two video creation methods, and picking the wrong one affects editing

A DEV Community article examines how OpenClaw can be used to produce videos, questioning whether the output can be edited afterward. It explains that there are two distinct approaches to making videos with the tool. The author argues that selecting the wrong approach could significantly alter a user's overall workflow. The piece walks readers through how each of the two methods operates. It is a roughly ten-minute read published on the platform in early December.