SShortSingh.
Back to feed

A pay calculator site built without webfonts or frameworks to stay fast on phones

0
·3 views

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.

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 ·

Scrub Client Data From AI Prompts Locally Before Sending

AI chat tools receive everything pasted into them, including sensitive details like names, emails, IBANs, card numbers and API keys. The article recommends swapping these values for numbered placeholders before submitting text, then restoring the originals in the AI's answer. Since models usually only need to know who wrote to whom rather than the actual identifiers, removing them costs little. The author, a small Dutch software company, promotes a browser extension called Scrub for AI that performs this detection and replacement locally. The piece also notes that such tools rely on pattern matching, so they cannot catch unstructured details like client or project names.

0
ProgrammingDEV Community ·

Lab Testing Plan for RouterOS SSH Host-Key Rejection After CVE-2026-67280 Patch

The article outlines how to verify a fix for CVE-2026-67280, a trust-boundary flaw in MikroTik RouterOS where a device could accept an unrelated valid SSH host key. Its central recommendation is negative testing: confirming that an affected device rejects a different server placed on the network path before sending credentials or trusting command output. Tests should run on isolated lab hardware or virtual instances, with affected builds in the 6.0.0 to pre-7.25 range compared against RouterOS 7.25 or later. The guidance also covers fail-closed behavior when the intended server is unreachable, the distinction between connection errors and non-success command results, and DNS or route changes within the lab. Evidence such as destination, key behavior, timestamps, and outcomes should be preserved for review, and ZoomEye's inventory results are noted as a product count rather than confirmation of vulnerability.

0
ProgrammingDEV Community ·

Guide Shows How Pentesters Uncover Hidden API Endpoints to Test Broken Access Control

A security practitioner explains that Broken Access Control, ranked first in the OWASP Top 10, is common and damaging, and that thorough endpoint enumeration is the essential first step in testing it. The article notes that API pentesters rarely receive accurate OpenAPI or Swagger specifications, so they must discover endpoints independently. It describes a technique of using browser developer tools to pause a page before a redirect to a login wall, allowing the frontend JavaScript to be saved and analyzed for API paths. The author outlines using pattern searches and, for large minified bundles, AI-assisted analysis, while cautioning that frontier models should only be used where client contracts permit. The piece frames enumeration as a coverage-focused phase rather than an exploitation step.

0
ProgrammingDEV Community ·

Are AI Training Sites Legit? Trustpilot Scores for Outlier, DataAnnotation and Mindrift

A remote-work guide reviewed Trustpilot ratings for AI training platforms as of November 30, 2026, finding Outlier at 3.9 out of 5, DataAnnotation at 3.8, and Mindrift at 3.7, with Upwork and Wellfound listed for comparison. Common praise cited flexible schedules, dependable weekly pay, and sensible tasks. Recurring complaints include accounts being suspended or removed with little explanation, sometimes with earnings still pending, qualification steps that lead to no work, and slow or automated support. The author notes that Trustpilot reviews are not fact-checked and that the same complaints appear across all three platforms. The guide advises never paying to join, following platform rules, keeping personal records of hours and payouts, and not relying on a single platform for income.