Learn design, coding, web tools, and get inspired!
Code Blog
View all →Why Local Storage is Vulnerable to XSS Attacks (And a Safer Alternative)
Discover why relying on Local Storage can expose your web app to dangerous XSS attacks. This in-depth guide explains how sensitive data is at risk and shows why switching to HttpOnly Secure Cookies offers a far safer alternative for managing authentication tokens and user data.
Read more →From Slow to Instant: How I Made Bokkah.com Insanely Fast by Caching Images with a Service Worker
Discover how Bokkah.com transformed its slow-loading images into a lightning-fast browsing experience by leveraging a custom service worker in React. Learn how caching images reduces network requests, boosts Core Web Vitals, and optimizes your web app for a seamless PWA performance.
Read more →Tailwind CSS: Targeting Mouse Devices Only with `mouse-only:`
Unlock smoother hover interactions with Tailwind CSS by targeting mouse devices exclusively. Learn to build a custom “mouse-only” variant that optimizes desktop hover effects while preserving a seamless experience for touch users.
Read more →How to Make a Themeable SVG Favicon
Boost your website’s style and performance with this step-by-step guide to creating a themeable SVG favicon. Learn how to design a responsive, scalable favicon that adapts seamlessly to both dark and light modes using CSS media queries and HTML integration. Perfect for web developers looking to enhance UI design and user experience.
Read more →