Day 5 of my 7-Day Button Challenge 🚀 Today I built a Professional Theme Toggle Button 🌙☀️ This button lets users switch between Dark Mode and Light Mode while remembering the user's preference using localStorage. Even after refreshing the page, the selected theme stays the same. What I practiced while building this: • JavaScript DOM manipulation • UI state handling • Local Storage for persistence • Building small but useful UI interactions Small features like this are common in real-world web applications and improve the overall user experience. #javascript #webdevelopment #frontend #codingchallenge #buildinpublic
More Relevant Posts
-
🚀 Improving Frontend Performance with Throttling & Debouncing One key realization while optimizing UI performance 👇 👉 Not all issues are about page load 👉 Many come from how frequently our code runs 🧠 The Problem Events like scroll 📜, resize 📏, and typing ⌨️ can fire hundreds of times per second This leads to: ❌ unnecessary work ❌ busy main thread ❌ poor responsiveness ⚙️ The Solution 🔹 Throttling 👉 Limit execution frequency 👉 e.g., run once every second 🔹 Debouncing 👉 Execute only after user stops 👉 e.g., search after typing stops 🎯 Key Difference 👉 Throttle = steady control 👉 Debounce = wait then act 📊 Why it matters 👉 Less work for browser 🧠 👉 Better responsiveness ⚡ 💡 “Performance is not just faster loading — it’s smarter execution.” #Frontend #JavaScript #WebPerformance #ReactJS #FrontendEngineering
To view or add a comment, sign in
-
🚀 Frontend Performance — Learning in Public Over the last couple of days, I explored Lighthouse-based performance analysis on a real application. Key learnings 👇 🧠 Main Thread Matters 👉 Browser runs on a single thread 👉 Heavy JS → slower interaction 🚦 Render-Blocking Resources 👉 CSS/JS can delay UI rendering ⛓️ Critical Request Chain 👉 Too many dependencies → slower loading 📊 Lighthouse Insight 👉 It’s not about score 👉 It’s about identifying root causes 🎯 Big takeaway: Performance = reduce work + remove blockers 📌 Next: Building a real-world performance audit report #Frontend #WebPerformance #JavaScript #ReactJS #SoftwareEngineering #LearnInPublic
To view or add a comment, sign in
-
Built a to-do app with a glassmorphic UI as a mini project. Kept it simple — vanilla HTML, CSS, and JS. No frameworks. A few things I learned along the way: — Local Storage API to persist tasks on refresh — DOM manipulation with vanilla JS — How CSS backdrop-filter actually works for the glass effect — JSON.stringify and JSON.parse for saving arrays Small project but learned a lot from it. More coming. repo link: https://lnkd.in/dEtj35Us #WebDev #JavaScript #Frontend #BuildInPublic
To view or add a comment, sign in
-
-
Behind the Screen – #32 Do you know? In JavaScript, almost everything runs on a #SingleMainThread. The main thread is responsible for: 👉 Executing JavaScript code 👉 Updating the DOM 👉 Handling user interactions (clicks, inputs) 👉 Rendering the UI Since there is only one #MainThread, it can do only one task at a time. If a heavy task runs on the main thread: 👉 The UI becomes unresponsive 👉 Clicks and inputs are delayed 👉 The page may feel frozen That’s why long operations should not block the main thread. Modern apps try to: • Break tasks into smaller #chunks • Use #asynchronous operations • #Offload heavy work when possible 🔥 A smooth user experience depends on keeping the main thread free. #javascript #webdevelopment #frontend #performance #softwareengineering
To view or add a comment, sign in
-
Hydration issues in Next.js can break your UI silently. No errors. Just weird behavior. Here’s why 👇 Server renders HTML. Client re-renders same component. If output differs: ❌ Hydration mismatch Common causes: ✖ Using random values (Math.random, Date.now) ✖ Accessing window during SSR ✖ Conditional rendering differences Result: → UI flicker → Unexpected bugs What works: ✔ Keep server & client output consistent ✔ Move client-only logic inside useEffect ✔ Avoid non-deterministic values Key insight: SSR means your code runs twice. If results differ… Your UI becomes unpredictable. #NextJS #ReactJS #Frontend #SSR #JavaScript #SoftwareEngineering #Debugging #Engineering #WebDevelopment
To view or add a comment, sign in
-
This is my Simple GitHub Issue Tracker Project! Key Features: • Login Functionality using Only JS. • Seamless switching between All, Open and Closed. • Show Issue Modal when Clicked Each Issue. • Added Search Functionaliy. • Clean, responsive, and user-friendly interface. This project helped me strengthen my JavaScript logic and UI handling skills. More improvements coming soon! Project Live Link: https://lnkd.in/g5vXKzma #WebDevelopment #JavaScript #Frontend #LearningJourney
To view or add a comment, sign in
-
-
🚀 𝗘𝘅𝗰𝗶𝘁𝗲𝗱 𝘁𝗼 𝘀𝗵𝗮𝗿𝗲 𝗺𝘆 𝗹𝗮𝘁𝗲𝘀𝘁 𝘀𝗶𝗱𝗲 𝗽𝗿𝗼𝗷𝗲𝗰𝘁: 𝗖𝗵𝗮𝗶-𝗧𝗮𝗶𝗹𝘄𝗶𝗻𝗱 I’m building 𝗖𝗵𝗮𝗶-𝗧𝗮𝗶𝗹𝘄𝗶𝗻𝗱 — a lightweight, utility-first CSS engine powered entirely by JavaScript. Think Tailwind-style rapid development, but with zero build-step dependencies and minimal footprint. Perfect for quick prototypes, side projects, or performance-critical apps. It’s still very much a work-in-progress — a few tweaks and optimizations are in progress — but the core engine is already delivering clean, responsive styling with pure JS magic. Here’s a quick live demo of what I’ve built so far 👇 I’d love feedback, suggestions from the frontend community! Hitesh Choudhary Piyush Garg Anirudh J. Akash Kadlag Chai Aur Code Jay Kadlag Let’s connect and grow together! #WebDevelopment #JavaScript #CSS #TailwindCSS #Frontend #OpenSource #ChaiTailwind #DevCommunity
To view or add a comment, sign in
-
Your downloads folder is a mess? So was mine, and here's the fix. IntelliSave. A Chrome extension that sorts every file you download into the right folder automatically. It checks where the file came from and what type it is, then puts it exactly where it belongs. And it learns your rules over time. Built it entirely from scratch: JavaScript, Chrome APIs, custom rules engine, and a settings UI I actually enjoyed designing. Free on the Chrome Web Store. Link in the comments 👇 #ChromeExtension #SideProject #JavaScript #WebDevelopment #Frontend #SoftwareEngineering
To view or add a comment, sign in
-
Built a small frontend project — a Gradient Generator 🎨 Focused on improving my understanding of DOM manipulation, event handling, and dynamic UI updates using JavaScript. ⚙️ Features: • Random gradient generation • Direction control • Live preview • One-click copy 🌐 Live Demo: https://lnkd.in/gcQSkiWS 📂 GitHub: https://lnkd.in/g8H34Ped A simple build, but a good step forward in strengthening fundamentals. #webdevelopment #frontend #javascript
To view or add a comment, sign in
-
Your UI lag is not always React. Sometimes… It’s the JavaScript event loop. Here’s what’s happening 👇 JavaScript is single-threaded. So when you run: → Heavy calculations → Large loops → Sync blocking code You block: ❌ Rendering ❌ User interactions Result: → UI freezes → Clicks feel delayed → App feels slow React can’t help here. Because it runs on the same thread. What works: ✔ Break work into chunks ✔ Use requestIdleCallback / setTimeout ✔ Offload heavy tasks (Web Workers) Key insight: Performance is not just “React optimization”. It’s understanding how the browser executes code. Ignore the event loop… And your UI will suffer. #JavaScript #EventLoop #Frontend #ReactJS #Performance #SoftwareEngineering #WebDevelopment #AdvancedReact #Engineering #Optimization
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development