Most developers think their mobile layout is broken… but the real bug is just "100vh". On mobile browsers, "100vh" doesn’t adjust when the address bar or bottom toolbar appears/disappears. Result? • Content gets cut off • Layout jumps • Weird blank spaces • Bad UX The fix is simple: "height: 100dvh;" "dvh" = Dynamic Viewport Height It always matches the actual visible screen height — even when the browser UI changes. Small CSS change. Massive improvement for mobile users. 📱 #webdevelopment #frontenddeveloper #css #javascript #webdev #programming #reactjs #coding
Fixing Mobile Layout Issues with Dynamic Viewport Height
More Relevant Posts
-
Small changes, big impact. ✨ I just pushed version 1.0.5 of my Personal Dashboard Chrome Extension to the store! This update was all about giving users more control without sacrificing the minimalist aesthetic. What’s new: - Settings Menu: A brand new Glassmorphism-style panel. - Time Customization: Toggle between 12h and 24h formats (featuring a sleek technical "h" suffix). - Manual Location: Override GPS to see weather anywhere in the world. - Performance: Enhanced caching for instant load times. It’s amazing how a few lines of Vanilla JavaScript can completely change the daily workflow 😀 Check it out here ⬇️ : https://lnkd.in/eZztV2wJ You have the code in the first comment, feel free to give me some feedback 👏 #WebDevelopment #JavaScript #ChromeExtension #Coding #OpenSource #Frontend #UIUX
To view or add a comment, sign in
-
Stop letting forced synchronous reflow kill your app's performance. 🚀 If you’ve ever built a virtualized list or a complex chat interface, you’ve likely hit the "DOM measurement trap." Every time you call getBoundingClientRect(), offsetHeight, or scrollHeight, the browser must pause, flush style changes, and perform a full rendering pass just to tell you a box's size. In a list of 500+ items, this "thrashing" can easily cost 30ms+ per frame, murdering your 60fps dreams. Enter Pretext.js, a new library from Cheng Lou (formerly of the React core team) that measures and positions multiline text entirely through pure arithmetic—without ever touching the DOM. Why this is a game-changer for developers: 🎨 Beyond the DOM: It opens the door for accurate text layout in Canvas and WebGL (think Figma or Miro) and future Server-Side Rendering. ♿ Accessibility: While it bypasses the DOM for measurement, you can still build fully accessible demos with semantic HTML, keyboard operability, and screen reader support. Check out this video for more https://lnkd.in/gvwnV68k #WebDev #JavaScript #TypeScript #Frontend #Performance #PretextJS #React #CodingTips
To view or add a comment, sign in
-
-
⚛️ A small React tip that many developers ignore — Accessibility While building UI, most of us focus on performance, clean design, and functionality. But one important thing often gets missed: Accessibility (a11y). Accessibility simply means making sure your application works for everyone, including people who use screen readers or navigate using only a keyboard. One mistake I used to make earlier 👇 Using clickable divs like this: It works visually, but there are some problems: • Screen readers don’t recognize it as a button • Keyboard users can’t trigger it properly • It breaks semantic HTML A better way is simply using the correct element: Submit With this, you automatically get: • Keyboard support (Enter / Space) • Better accessibility for screen readers • Cleaner and more semantic code 💡 Small takeaway: Whenever possible, prefer semantic HTML elements instead of generic divs. Sometimes the smallest changes make our applications usable for many more people. #reactjs #javascript #webaccessibility #frontenddevelopment
To view or add a comment, sign in
-
Building and refining a scalable React architecture using lazy loading and modular components. Focused on improving navigation structure, connecting pages properly, and optimizing performance across the app. Small improvements every day → better user experience 🚀 #React #WebDevelopment #FrontendDevelopment #JavaScript #SoftwareEngineering #UIUX #CleanCode #CodingJourney
To view or add a comment, sign in
-
-
Navigation patterns are where React apps either feel polished — or fall apart completely. 16-web-editorial-layouts is a TypeScript React app demonstrating multi-page navigation and editorial layout patterns — clean, purposeful routing without reaching for a full framework. Tech highlights: • TypeScript + React with a focus on routing architecture and component composition • Editorial layout system designed for content-first reading experiences • Multi-platform deployment across Vercel, Netlify, Firebase, and Cloudflare • GitHub Actions CI/CD with automated security scanning baked in Building editorial layouts taught me that routing and visual hierarchy are deeply coupled. A navigation bug is often actually a layout design bug in disguise — fix one without the other and you have just moved the problem somewhere less obvious. Do you prefer client-side routing or server-side navigation for content-heavy web apps, and why? #React #TypeScript #Frontend #WebDesign #JavaScript
To view or add a comment, sign in
-
My client's app was bleeding users. 6.2-second load time. Brutal. The problem wasn't the design or the copy — it was a React SPA shipping a 2.4MB JavaScript bundle to every visitor before showing a single pixel. Here's what I did to fix it: → Migrated the 3 highest-traffic pages to Next.js with Server-Side Rendering (SSR) → Split the bundle using dynamic imports — lazy-loaded everything below the fold → Moved static content to Static Site Generation (SSG) with ISR for cache efficiency → Replaced heavy client-side data fetching with getServerSideProps Result after 2 weeks: — Load time: 6.2s → 2.4s (61% faster) — Largest Contentful Paint: 4.8s → 1.6s — Bounce rate dropped by 34% The client hadn't changed a single word of content. Just cleaner architecture. This is why I now audit the rendering strategy before touching the UI on every new project. What's the worst load time you've inherited on a project? Drop it below — curious how bad it gets out there. #nextjs #reactjs #webperformance #fullstackdeveloper #buildinpublic #llm #vibecoding #anthropic
To view or add a comment, sign in
-
-
The best developer tools are the ones that get out of your way. If you just need to convert a HEX color to RGB while tweaking a UI in React or Next.js, you don't want to build a user profile. The Color Converter on DailyTools is entirely friction-free. Zero logins, zero tracking, just pure privacy and instant utility. Convert your colors here: https://lnkd.in/d4kKPefG #UIUX #FrontendDevelopment #WebDev #DailyTools
To view or add a comment, sign in
-
-
🚀 Lazy Loading… but Make It Beautiful We often talk about lazy loading as a performance trick — but what if it could also enhance the user experience? Instead of elements abruptly appearing on the screen, imagine them starting off blurred and gradually becoming clear as they load. It creates a smooth, polished feel — almost like the content is “coming into focus.” This blur-to-visible approach doesn’t just improve performance — it improves perception. 💡 Users don’t just want fast apps. They want apps that feel fast. Sometimes, small UI details like this can make a big difference in how your product is experienced. ✨ Lazy loading isn’t lazy — it’s thoughtful design. 🚀 Here Check my GitHub repo: 🔗 https://lnkd.in/gCz98WpX 🚀 Day 20 of my #100DaysOfCode #WebDevelopment #Frontend #JavaScript #CSS #UserExperience #Performance
To view or add a comment, sign in
-
🚀 Navigating the JavaScript Maze: Client-Side vs. Server-Side vs. Static Gen Ever made the wrong tech stack choice and lived to regret it? 🤷♂️ Picking between Client-Side Rendering (CSR), Server-Side Rendering (SSR), or Static Generation can be confusing, but it's crucial! 👉 Client-Side Rendering (CSR) is all about speed and interactivity. Great for dynamic, single-page apps where users interact a ton. 👉 Server-Side Rendering (SSR) delivers HTML for each request. Perfect for improving SEO and faster initial load times. 👉 Static Generation is the new cool kid on the block. Think blogs and landing pages with pre-rendered content for speed. Choosing the right one isn't just about tech buzzwords — it's about knowing your app's needs and your user's experience. Are you team CSR, SSR, or Static? Let me know where you stand! 🔍 #JavaScript #WebDevelopment #Frontend #TechChoices
To view or add a comment, sign in
-
𝗥𝗲𝗮𝗰𝘁 𝗦𝗲𝗿𝘃𝗲𝗿 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝘃𝘀 𝗧𝗿𝗮𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗥𝗲𝗻𝗱𝗲𝗿𝗶𝗻𝗴 — 𝗖𝗵𝗼𝗼𝘀𝗲 𝗽𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲 𝗼𝗿 𝘀𝗶𝗺𝗽𝗹𝗶𝗰𝗶𝘁𝘆, 𝘁𝗵𝗲 𝘀𝗺𝗮𝗿𝘁 𝘄𝗮𝘆 . . . Choosing the right rendering approach can make or break your app’s performance When it comes to React Server Components (RSC) vs Traditional Rendering, it’s not about which is better—it’s about what fits your use case. RSC is changing the game. Less JavaScript sent to the browser means faster load times, smoother performance, and a better user experience. It’s perfect for large, data-heavy applications where speed and scalability matter most. On the other hand, traditional rendering still holds its ground. CSR gives you rich interactivity, while SSR improves SEO and initial load performance. That’s why it remains a reliable choice for smaller apps and legacy systems. Here’s the real takeaway 👇 If you’re building modern, performance-driven apps → go with RSC If you need simplicity, flexibility, or are working with existing systems → traditional rendering works just fine The future is leaning toward hybrid approaches—combining the best of both worlds. So don’t just follow trends. Choose the architecture that aligns with your product goals, performance needs, and user expectations. Because in the end, great user experience always wins . . . #ReactJS #WebDevelopment #FrontendDevelopment #Devace #ReactDevelopers #JavaScript #TechTrends #SoftwareDevelopment
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