All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Replacing JavaScript Web Components with HTML-Only Navigation for Icon Resizing

By

Jim Nielsen

20d ago· 3 min readenOpinion

Summary

The author discusses replacing a JavaScript-based web component for resizing icons on their icon sites with a simpler HTML-only approach. Previously, they used a custom <icon-list> web component with a size attribute (sm, md, lg, xl). The article advocates for using multiple HTML pages and navigations instead of JS-dependent in-page interactions, demonstrating a shift toward simpler, more resilient web development patterns.

Key quotes

· 3 pulled
I've been posting about how you can make lots of HTML pages and leverage navigations over in-page, JS-dependent interactions.
Previously, I implemented this functionality as a web component that looked something like this:
Writing about the big beautiful mess that is making things for the world wide web.
Snippet from the RSS feed
Writing about the big beautiful mess that is making things for the world wide web.

You might also wanna read