A pay calculator site built without webfonts or frameworks to stay fast on phones
A developer building a time card and pay calculator site set a rule at the outset: no downloaded fonts and no frameworks, so pages would load quickly on phones over slow connections. The site relies on the operating system's own font stack, which avoids extra downloads and layout shifts and makes text match each device's native look. Its logic is written in plain JavaScript, with one shared script handling the time arithmetic for all roughly 270 pages. Styling comes from a single cached stylesheet built on CSS custom properties, and scripts are deferred so the page renders before the code runs. The author acknowledges the trade-off of more hand-written boilerplate, but argues the constraint keeps the site fast and easy to maintain.
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