NAYAN’S ENGINEERING JOURNAL
Notes worth keeping.
Page 8 of 9.
My collection of practical guides on React, Angular, JavaScript, frontend design, performance, technical SEO and reliable delivery. Explore a topic, follow an example, and check the details.
103 GUIDES IN THE JOURNAL / 12 ON THIS PAGE
Engineering articles
Updated CSS Missing in Production? Trace the Bytes Before Clearing Caches
Follow the stylesheet request through the browser, CDN and deployed artifact to identify which layer is serving old content.
Use Content-Hashed Assets Without Caching HTML into a Stale Release
Give immutable assets and frequently changing document pointers different cache policies.
Use Keyword Counts as an Editing Signal, Not a Content Strategy
Build useful technical articles around clear questions, accurate examples and maintained advice instead of repetition targets.
Use Object-Fit to Crop Images Without Stretching Them
Choose between cover and contain, preserve the important subject, and recognize when a new source crop is necessary.
Use Prefers-Color-Scheme Without Losing Explicit Theme Choices
Build a theme preference order that respects the system and keeps forms, text and embedded surfaces consistent.
Use Regular Expressions for Focused Input Validation
Write small, testable patterns without treating a matching string as proof of a valid business operation.
Use S3 as a Static Asset Origin with Explicit Access and Cache Decisions
Plan object paths, HTTPS delivery, access boundaries and metadata before treating an S3 bucket as a finished website host.
Use unknown at Boundaries Instead of Spreading any
Validate external values and narrow errors so uncertainty stays at the edge of your application.
Verify Brotli and Gzip Delivery Instead of Assuming Files Are Compressed
Inspect negotiated encodings, response headers and transfer sizes when enabling text compression on a static site.
When to Use Map and Set in Frontend JavaScript
Choose collections for lookups and uniqueness without confusing object identity with value equality.
Write Form Validation Errors That Help People Recover
Turn invalid form states into specific, accessible instructions instead of generic red outlines.
Write Image Alt Text Around Purpose, Not Keywords
Describe the information an image contributes and avoid repeating nearby text or decorating every picture with a caption.
Put a useful idea to work.
Try the browser utilities in my developer toolkit.