<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Henrry George</title>
    <description>The latest articles on DEV Community by Henrry George (@creativeunit).</description>
    <link>https://dev.to/creativeunit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4235625%2F25a8e170-4eb0-42ab-8e20-9d8be373716c.png</url>
      <title>DEV Community: Henrry George</title>
      <link>https://dev.to/creativeunit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/creativeunit"/>
    <language>en</language>
    <item>
      <title>Your Website Looks Perfect on Desktop. Here's Why It Fails on Mobile</title>
      <dc:creator>Henrry George</dc:creator>
      <pubDate>Fri, 20 Nov 2026 20:56:13 +0000</pubDate>
      <link>https://dev.to/creativeunit/your-website-looks-perfect-on-desktop-heres-why-it-fails-on-mobile-1b6e</link>
      <guid>https://dev.to/creativeunit/your-website-looks-perfect-on-desktop-heres-why-it-fails-on-mobile-1b6e</guid>
      <description>&lt;p&gt;You've spent hours designing your website.&lt;/p&gt;

&lt;p&gt;The colors look right. The images are sharp. The navigation works perfectly. Every section looks exactly how you imagined it.&lt;/p&gt;

&lt;p&gt;You open it on your laptop, admire the result, and think everything is ready.&lt;/p&gt;

&lt;p&gt;But then someone visits your website using a smartphone.&lt;/p&gt;

&lt;p&gt;The text is difficult to read. Buttons are too small. Images take forever to load. Navigation becomes frustrating, and important information is hidden below unnecessary sections.&lt;/p&gt;

&lt;p&gt;Suddenly, that beautiful website doesn't feel so impressive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's the problem: Your website isn't just competing for attention on desktop screens anymore. It's competing for attention on mobile devices, too.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And if your mobile experience is frustrating, you're potentially losing visitors before they even understand what your business offers.&lt;/p&gt;

&lt;p&gt;Let's look at why this happens and, more importantly, how to fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Designing for Desktop First Can Create Problems
&lt;/h2&gt;

&lt;p&gt;One common mistake developers make is designing everything around large screens.&lt;/p&gt;

&lt;p&gt;A desktop layout might have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Three or four columns.&lt;/li&gt;
&lt;li&gt;Large background images.&lt;/li&gt;
&lt;li&gt;Complex navigation menus.&lt;/li&gt;
&lt;li&gt;Multiple content sections side by side.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These elements can look fantastic on a desktop.&lt;/p&gt;

&lt;p&gt;But smartphones have much less available screen space.&lt;/p&gt;

&lt;p&gt;When developers simply shrink desktop layouts instead of adapting them, the result can become difficult to use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The solution: Think about smaller screens during the design process.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use flexible layouts, responsive grids, and CSS media queries instead of relying on fixed-width elements.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt; &lt;span class="n"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;32px&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1200px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;margin-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;768px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;480px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This simple approach allows the layout to adapt to different screen sizes.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Slow Loading Can Destroy a Good First Impression
&lt;/h2&gt;

&lt;p&gt;Imagine clicking a website link and waiting several seconds for the main content to appear.&lt;/p&gt;

&lt;p&gt;Would you patiently wait, or would you consider visiting another website?&lt;/p&gt;

&lt;p&gt;Many visitors won't wait around when a page feels unnecessarily slow.&lt;/p&gt;

&lt;p&gt;Mobile performance can be affected by several things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Oversized images.&lt;/li&gt;
&lt;li&gt;Unnecessary JavaScript.&lt;/li&gt;
&lt;li&gt;Too many third-party scripts.&lt;/li&gt;
&lt;li&gt;Poor caching configuration.&lt;/li&gt;
&lt;li&gt;Excessive animations.&lt;/li&gt;
&lt;li&gt;Unoptimized fonts and resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Start by checking your website with Google PageSpeed Insights.&lt;/p&gt;

&lt;p&gt;Pay particular attention to these three Core Web Vitals:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LCP (Largest Contentful Paint):&lt;/strong&gt; How quickly the main content appears.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;INP (Interaction to Next Paint):&lt;/strong&gt; How responsive the website feels when someone interacts with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CLS (Cumulative Layout Shift):&lt;/strong&gt; How much unexpected movement occurs while the page loads.&lt;/p&gt;

&lt;p&gt;A few practical improvements include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compress images before uploading.&lt;/li&gt;
&lt;li&gt;Use WebP or AVIF where appropriate.&lt;/li&gt;
&lt;li&gt;Load non-critical images lazily.&lt;/li&gt;
&lt;li&gt;Remove unused JavaScript.&lt;/li&gt;
&lt;li&gt;Avoid unnecessary external scripts.&lt;/li&gt;
&lt;li&gt;Configure browser caching properly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can test your website here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pagespeed.web.dev/" rel="noopener noreferrer"&gt;Google PageSpeed Insights&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Small Buttons Create Big Frustrations
&lt;/h2&gt;

&lt;p&gt;A button might look perfectly sized when you're using a mouse.&lt;/p&gt;

&lt;p&gt;But imagine trying to tap that same button with your thumb on a small smartphone screen.&lt;/p&gt;

&lt;p&gt;If buttons are too close together, visitors can accidentally select the wrong option.&lt;/p&gt;

&lt;p&gt;This is especially frustrating on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contact forms.&lt;/li&gt;
&lt;li&gt;Navigation menus.&lt;/li&gt;
&lt;li&gt;Ecommerce product pages.&lt;/li&gt;
&lt;li&gt;Login screens.&lt;/li&gt;
&lt;li&gt;Checkout pages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Make interactive elements comfortable to use with touch.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nc"&gt;.button&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;min-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;44px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;12px&lt;/span&gt; &lt;span class="mi"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;pointer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a practical starting point, not a universal accessibility guarantee. Check spacing, contrast, and the applicable WCAG requirements as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Your Navigation Shouldn't Become a Puzzle
&lt;/h2&gt;

&lt;p&gt;Desktop navigation usually has plenty of horizontal space.&lt;/p&gt;

&lt;p&gt;Mobile screens don't.&lt;/p&gt;

&lt;p&gt;A navigation menu that works perfectly on a laptop might become crowded or difficult to operate on a smartphone.&lt;/p&gt;

&lt;p&gt;A good mobile navigation experience should:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep important links easy to find.&lt;/li&gt;
&lt;li&gt;Use understandable labels.&lt;/li&gt;
&lt;li&gt;Avoid unnecessarily complicated dropdowns.&lt;/li&gt;
&lt;li&gt;Provide a clear menu control.&lt;/li&gt;
&lt;li&gt;Make the current page easy to identify.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't hide essential information behind multiple layers of navigation.&lt;/p&gt;

&lt;p&gt;Remember, visitors shouldn't have to solve a puzzle just to find your services or contact information.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Large Images Can Make Mobile Websites Feel Heavy
&lt;/h2&gt;

&lt;p&gt;Images are important for visual storytelling.&lt;/p&gt;

&lt;p&gt;However, using large desktop images everywhere can create unnecessary performance problems.&lt;/p&gt;

&lt;p&gt;For example, a 3000-pixel-wide image might look excellent on a large monitor but be unnecessarily heavy when displayed in a small mobile section.&lt;/p&gt;

&lt;p&gt;Consider using responsive images:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"website-small.webp"&lt;/span&gt;
  &lt;span class="na"&gt;srcset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"
    website-small.webp 480w,
    website-medium.webp 960w,
    website-large.webp 1600w
  "&lt;/span&gt;
  &lt;span class="na"&gt;sizes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"(max-width: 600px) 100vw, 50vw"&lt;/span&gt;
  &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Website displayed on multiple devices"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows the browser to select an appropriate image resource based on the available conditions.&lt;/p&gt;

&lt;p&gt;Also remember to specify image dimensions where possible to help prevent unexpected layout shifts.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Important Content Shouldn't Disappear on Mobile
&lt;/h2&gt;

&lt;p&gt;Some websites look excellent on desktop but remove too much information from their mobile versions.&lt;/p&gt;

&lt;p&gt;This can create a frustrating experience.&lt;/p&gt;

&lt;p&gt;Visitors might struggle to find:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Service descriptions.&lt;/li&gt;
&lt;li&gt;Pricing information.&lt;/li&gt;
&lt;li&gt;Product details.&lt;/li&gt;
&lt;li&gt;Contact information.&lt;/li&gt;
&lt;li&gt;Customer reviews.&lt;/li&gt;
&lt;li&gt;Important calls to action.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Responsive design should adapt content, not unnecessarily remove its value.&lt;/p&gt;

&lt;p&gt;Think about what visitors need to accomplish and make sure that information remains accessible across devices.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Test Your Website on Real Devices
&lt;/h2&gt;

&lt;p&gt;Browser resizing is useful, but it shouldn't be your only testing method.&lt;/p&gt;

&lt;p&gt;Different devices have different screen dimensions, browser behaviors, and performance characteristics.&lt;/p&gt;

&lt;p&gt;Before launching, test your website using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Android smartphones.&lt;/li&gt;
&lt;li&gt;iPhones.&lt;/li&gt;
&lt;li&gt;Tablets.&lt;/li&gt;
&lt;li&gt;Desktop browsers.&lt;/li&gt;
&lt;li&gt;Different screen orientations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether text remains readable.&lt;/li&gt;
&lt;li&gt;Whether buttons are easy to tap.&lt;/li&gt;
&lt;li&gt;Whether forms work correctly.&lt;/li&gt;
&lt;li&gt;Whether menus open and close properly.&lt;/li&gt;
&lt;li&gt;Whether images display correctly.&lt;/li&gt;
&lt;li&gt;Whether horizontal scrolling appears unexpectedly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Useful tools include Chrome DevTools, Google Lighthouse, and PageSpeed Insights.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Quick Mobile Website Checklist
&lt;/h2&gt;

&lt;p&gt;Before publishing your next website, go through this checklist:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Layout adapts to smaller screens.&lt;/li&gt;
&lt;li&gt;[ ] Text is comfortable to read.&lt;/li&gt;
&lt;li&gt;[ ] Buttons are easy to tap.&lt;/li&gt;
&lt;li&gt;[ ] Navigation works properly.&lt;/li&gt;
&lt;li&gt;[ ] Images are optimized.&lt;/li&gt;
&lt;li&gt;[ ] Important information remains accessible.&lt;/li&gt;
&lt;li&gt;[ ] Forms work on mobile devices.&lt;/li&gt;
&lt;li&gt;[ ] No unnecessary horizontal scrolling.&lt;/li&gt;
&lt;li&gt;[ ] Core Web Vitals have been checked.&lt;/li&gt;
&lt;li&gt;[ ] The website has been tested on actual devices.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;A website shouldn't be considered finished simply because it looks beautiful on a desktop.&lt;/p&gt;

&lt;p&gt;The real test is whether people can use it comfortably, regardless of the device they're holding.&lt;/p&gt;

&lt;p&gt;A good mobile experience requires more than shrinking a layout. It requires thoughtful design decisions, optimized performance, accessible interactions, and proper testing.&lt;/p&gt;

&lt;p&gt;Whether you're building a website for a small business, an online store, or a growing startup, remember one thing:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't just design for the screen in front of you. Design for the people who will actually use your website.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's what makes a website genuinely responsive.&lt;/p&gt;




&lt;p&gt;At The Creative Unit, we believe great digital experiences combine thoughtful design, reliable development, and real usability.&lt;/p&gt;

&lt;p&gt;Explore more ideas about web design, development, and digital experiences at &lt;a href="https://www.thecreativeunit.com/" rel="noopener noreferrer"&gt;The Creative Unit&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>design</category>
      <category>frontend</category>
      <category>mobile</category>
      <category>ux</category>
    </item>
    <item>
      <title>You Type a URL and Hit Enter. What Actually Happens Behind the Scenes?</title>
      <dc:creator>Henrry George</dc:creator>
      <pubDate>Sat, 14 Nov 2026 21:55:28 +0000</pubDate>
      <link>https://dev.to/creativeunit/you-type-a-url-and-hit-enter-what-actually-happens-behind-the-scenes-cfk</link>
      <guid>https://dev.to/creativeunit/you-type-a-url-and-hit-enter-what-actually-happens-behind-the-scenes-cfk</guid>
      <description>&lt;p&gt;Have you ever wondered what happens between typing &lt;code&gt;https://example.com&lt;/code&gt; into your browser and seeing the website appear on your screen?&lt;/p&gt;

&lt;p&gt;It feels almost instant.&lt;/p&gt;

&lt;p&gt;You enter a URL, press Enter, wait a moment, and the webpage appears. You can click buttons, open menus, watch videos, and interact with different elements.&lt;/p&gt;

&lt;p&gt;But behind that simple action, several technologies work together.&lt;/p&gt;

&lt;p&gt;DNS finds the server. Network protocols establish communication. HTTPS protects the connection. The server processes your request and sends a response. Finally, the browser turns HTML, CSS, and JavaScript into the webpage you see.&lt;/p&gt;

&lt;p&gt;Understanding this process is one of the most useful things a web developer can learn.&lt;/p&gt;

&lt;p&gt;Whether you're building websites, developing APIs, working with frontend frameworks, or learning backend development, knowing what happens behind the scenes helps you understand how the web actually works.&lt;/p&gt;

&lt;p&gt;Let's follow a single request from the moment you press Enter.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Browser First Understands the URL
&lt;/h2&gt;

&lt;p&gt;Imagine you enter this address:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://www.example.com/products?id=25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Before contacting a server, the browser interprets the URL.&lt;/p&gt;

&lt;p&gt;A URL contains several parts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Protocol&lt;/td&gt;
&lt;td&gt;&lt;code&gt;https&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Defines how communication is secured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hostname&lt;/td&gt;
&lt;td&gt;&lt;code&gt;www.example.com&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Identifies the destination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/products&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Identifies the requested resource&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Query string&lt;/td&gt;
&lt;td&gt;&lt;code&gt;?id=25&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Provides additional parameters&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The browser uses this information to determine where the request should go and how it should communicate.&lt;/p&gt;

&lt;p&gt;For example, HTTPS normally uses port 443, while HTTP normally uses port 80.&lt;/p&gt;

&lt;p&gt;If the URL contains a fragment such as &lt;code&gt;#reviews&lt;/code&gt;, that fragment is generally handled by the browser and isn't sent as part of the HTTP request.&lt;/p&gt;

&lt;p&gt;But there's still one important problem.&lt;/p&gt;

&lt;p&gt;The browser knows the website's domain name, but it needs an IP address to communicate with the destination.&lt;/p&gt;

&lt;p&gt;That's where DNS comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. DNS Finds the Website's IP Address
&lt;/h2&gt;

&lt;p&gt;DNS stands for Domain Name System.&lt;/p&gt;

&lt;p&gt;Think of it as the internet's address directory.&lt;/p&gt;

&lt;p&gt;Humans remember names like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;google.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;github.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;example.com&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Computers use IP addresses to route network traffic.&lt;/p&gt;

&lt;p&gt;When your browser needs to reach a domain, it uses DNS resolution to discover the appropriate IP address.&lt;/p&gt;

&lt;p&gt;A simplified DNS lookup works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The browser or operating system checks available DNS caches.&lt;/li&gt;
&lt;li&gt;If the answer isn't cached, a DNS resolver is contacted.&lt;/li&gt;
&lt;li&gt;The resolver may query other DNS servers to find the required record.&lt;/li&gt;
&lt;li&gt;The resolver returns the result, such as an A or AAAA record.&lt;/li&gt;
&lt;li&gt;The browser can use the returned address to establish a connection.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, an IPv4 DNS record might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;example.com → 93.184.216.34
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is an illustrative example of DNS mapping, not a guarantee that the address will remain the same.&lt;/p&gt;

&lt;p&gt;You can try looking up a domain yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nslookup example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These commands help developers understand how domain names resolve to IP addresses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does DNS matter?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Without DNS, people would need to remember IP addresses instead of convenient domain names.&lt;/p&gt;

&lt;p&gt;It also plays an important role in website infrastructure, including load balancing, content delivery networks, and domain management.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The Browser Establishes a Connection
&lt;/h2&gt;

&lt;p&gt;Now the browser knows where it needs to send the request.&lt;/p&gt;

&lt;p&gt;The next step is establishing communication.&lt;/p&gt;

&lt;p&gt;For HTTPS websites, this typically involves a secure connection using TLS.&lt;/p&gt;

&lt;p&gt;There are two common transport approaches worth understanding.&lt;/p&gt;

&lt;h3&gt;
  
  
  TCP
&lt;/h3&gt;

&lt;p&gt;Traditional HTTPS connections commonly use TCP.&lt;/p&gt;

&lt;p&gt;TCP establishes a connection between the client and server through a process known as the three-way handshake.&lt;/p&gt;

&lt;p&gt;The process involves:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;SYN:&lt;/strong&gt; The client requests a connection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SYN-ACK:&lt;/strong&gt; The server acknowledges the request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ACK:&lt;/strong&gt; The client confirms the connection.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After this process, both sides can exchange data over the established TCP connection.&lt;/p&gt;

&lt;h3&gt;
  
  
  QUIC
&lt;/h3&gt;

&lt;p&gt;Modern HTTP/3 uses QUIC, which runs over UDP rather than TCP.&lt;/p&gt;

&lt;p&gt;QUIC integrates transport security using TLS 1.3 and provides connection establishment and stream handling designed for modern internet communication.&lt;/p&gt;

&lt;p&gt;This distinction matters because HTTP/3 doesn't use the traditional TCP three-way handshake.&lt;/p&gt;

&lt;h3&gt;
  
  
  What About TLS?
&lt;/h3&gt;

&lt;p&gt;For a secure HTTPS connection, TLS helps protect communication between the browser and the server.&lt;/p&gt;

&lt;p&gt;During a TLS handshake, the client and server negotiate security parameters, authenticate the server using its certificate, and establish shared encryption keys.&lt;/p&gt;

&lt;p&gt;This helps protect sensitive information from being read or modified while traveling across the network.&lt;/p&gt;

&lt;p&gt;For example, when you submit login credentials through HTTPS, the connection encrypts the communication between your browser and the server.&lt;/p&gt;

&lt;p&gt;You can learn more through MDN's TLS documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The Browser Sends an HTTP Request
&lt;/h2&gt;

&lt;p&gt;Once the necessary connection is ready, the browser can send an HTTP request.&lt;/p&gt;

&lt;p&gt;HTTP stands for Hypertext Transfer Protocol.&lt;/p&gt;

&lt;p&gt;It defines how clients and servers exchange information.&lt;/p&gt;

&lt;p&gt;A simplified HTTP request might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="na"&gt;GET /products?id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt; &lt;span class="no"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt;
&lt;span class="nc"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;www&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;
&lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;
&lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ExampleBrowser&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This request communicates several things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET&lt;/code&gt; is the HTTP method.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/products?id=25&lt;/code&gt; identifies the requested resource.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Host&lt;/code&gt; identifies the requested hostname.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Accept&lt;/code&gt; indicates the content types the client can accept.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;User-Agent&lt;/code&gt; identifies the requesting software.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are several HTTP methods developers commonly use:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Common Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GET&lt;/td&gt;
&lt;td&gt;Retrieve information&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST&lt;/td&gt;
&lt;td&gt;Submit data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PUT&lt;/td&gt;
&lt;td&gt;Replace a resource&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PATCH&lt;/td&gt;
&lt;td&gt;Partially update a resource&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DELETE&lt;/td&gt;
&lt;td&gt;Delete a resource&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For example, when a user opens a product page, the browser might send a GET request.&lt;/p&gt;

&lt;p&gt;When a user submits a registration form, the application might send a POST request containing the submitted information.&lt;/p&gt;

&lt;p&gt;You can inspect HTTP requests yourself using Chrome DevTools.&lt;/p&gt;

&lt;p&gt;Open a website, press F12, select the Network tab, and reload the page.&lt;/p&gt;

&lt;p&gt;You'll see requests, response codes, headers, resource sizes, and timing information.&lt;/p&gt;

&lt;p&gt;This is one of the most useful debugging techniques for web developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The Request Reaches a Server
&lt;/h2&gt;

&lt;p&gt;After leaving the browser, the request travels through the network infrastructure toward its destination.&lt;/p&gt;

&lt;p&gt;Depending on the website's architecture, it may pass through:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Routers and network gateways.&lt;/li&gt;
&lt;li&gt;A content delivery network (CDN).&lt;/li&gt;
&lt;li&gt;A reverse proxy.&lt;/li&gt;
&lt;li&gt;A load balancer.&lt;/li&gt;
&lt;li&gt;A web server.&lt;/li&gt;
&lt;li&gt;An application server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not every website uses all these components.&lt;/p&gt;

&lt;p&gt;For example, a simple static website might be served directly from a CDN without running application code for every request.&lt;/p&gt;

&lt;p&gt;A dynamic application may require backend processing.&lt;/p&gt;

&lt;p&gt;Imagine a user visiting an ecommerce product page.&lt;/p&gt;

&lt;p&gt;The backend might need to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the requested product.&lt;/li&gt;
&lt;li&gt;Retrieve product information from a database.&lt;/li&gt;
&lt;li&gt;Check inventory.&lt;/li&gt;
&lt;li&gt;Load relevant images or metadata.&lt;/li&gt;
&lt;li&gt;Generate an appropriate response.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A simplified Node.js example might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;express&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"express"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;express&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/products/:id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;productId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// Example data for demonstration&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;product&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;productId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Wireless Headphones"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;79&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Server running on port 3000"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a client requests &lt;code&gt;/products/25&lt;/code&gt;, the server processes the route and returns a JSON response.&lt;/p&gt;

&lt;p&gt;Real applications would usually retrieve product information from a database and include validation, error handling, and appropriate security checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The Server Sends an HTTP Response
&lt;/h2&gt;

&lt;p&gt;After processing the request, the server sends an HTTP response.&lt;/p&gt;

&lt;p&gt;A simplified response might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mf"&gt;1.1&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="no"&gt;OK&lt;/span&gt;
&lt;span class="nc"&gt;Content&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;application&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"25"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Wireless Headphones"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;79&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The response contains a status code, headers, and sometimes a response body.&lt;/p&gt;

&lt;p&gt;Here are some HTTP status codes developers should recognize:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;201&lt;/td&gt;
&lt;td&gt;Created&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;301&lt;/td&gt;
&lt;td&gt;Moved Permanently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;302&lt;/td&gt;
&lt;td&gt;Found&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;Bad Request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;401&lt;/td&gt;
&lt;td&gt;Unauthorized&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;403&lt;/td&gt;
&lt;td&gt;Forbidden&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;404&lt;/td&gt;
&lt;td&gt;Not Found&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;td&gt;Internal Server Error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;503&lt;/td&gt;
&lt;td&gt;Service Unavailable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These codes help the browser and other clients understand what happened during a request.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A 200 response generally means the request succeeded.&lt;/li&gt;
&lt;li&gt;A 404 response means the requested resource wasn't found.&lt;/li&gt;
&lt;li&gt;A 500 response indicates an internal server error.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An important detail: a successful HTTP response doesn't necessarily mean the application operation was successful in a business sense. Developers still need to inspect the response body and application-level errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. The Browser Starts Building the Webpage
&lt;/h2&gt;

&lt;p&gt;This is where things become particularly interesting for frontend developers.&lt;/p&gt;

&lt;p&gt;The browser receives HTML and begins processing it.&lt;/p&gt;

&lt;p&gt;It doesn't simply display the HTML as a finished document.&lt;/p&gt;

&lt;p&gt;Instead, it parses the markup and builds an internal representation called the DOM (Document Object Model).&lt;/p&gt;

&lt;p&gt;Consider this HTML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;My Website&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello, Developers!&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Welcome to my website.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser parses this document and creates a tree-like structure.&lt;/p&gt;

&lt;p&gt;Conceptually, the DOM looks something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Document
  └── html
      ├── head
      │   └── title
      └── body
          ├── h1
          └── p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The DOM represents the structure and content of the page.&lt;/p&gt;

&lt;p&gt;JavaScript can interact with it through browser APIs.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;heading&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"h1"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;heading&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Welcome to Web Development!"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This changes the heading's text without requiring a completely new HTML document.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. CSS Builds the Visual Appearance
&lt;/h2&gt;

&lt;p&gt;HTML provides structure, but CSS controls how the page looks.&lt;/p&gt;

&lt;p&gt;When the browser processes CSS, it builds another internal representation called the CSSOM (CSS Object Model).&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Arial&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sans-serif&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#f5f5f5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#2563eb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;32px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser uses CSS rules to determine how HTML elements should appear.&lt;/p&gt;

&lt;p&gt;It then combines the DOM and CSSOM information to construct a render tree.&lt;/p&gt;

&lt;p&gt;The render tree contains the visible elements and their computed styles.&lt;/p&gt;

&lt;p&gt;This is an important part of the browser's critical rendering path.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Layout, Paint, and Compositing Turn Everything Into Pixels
&lt;/h2&gt;

&lt;p&gt;Once the browser has the information needed to render the page, it performs several operations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Layout
&lt;/h3&gt;

&lt;p&gt;The browser calculates the size and position of visible elements.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where should the navigation bar appear?&lt;/li&gt;
&lt;li&gt;How wide should the main content be?&lt;/li&gt;
&lt;li&gt;Where should an image be positioned?&lt;/li&gt;
&lt;li&gt;How much space should exist between sections?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Paint
&lt;/h3&gt;

&lt;p&gt;The browser determines how individual elements should be visually drawn.&lt;/p&gt;

&lt;p&gt;This includes text, backgrounds, borders, shadows, and other visual details.&lt;/p&gt;

&lt;h3&gt;
  
  
  Compositing
&lt;/h3&gt;

&lt;p&gt;The browser combines different visual layers into the final image displayed on the screen.&lt;/p&gt;

&lt;p&gt;Some content may be composited using the GPU, depending on the browser and rendering requirements.&lt;/p&gt;

&lt;p&gt;The overall process can be simplified as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HTML
  ↓
DOM

CSS
  ↓
CSSOM

DOM + CSSOM
  ↓
Render Tree
  ↓
Layout
  ↓
Paint
  ↓
Compositing
  ↓
Pixels on Screen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how the browser transforms code into the visual webpage you interact with.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. The Browser Continues Loading Other Resources
&lt;/h2&gt;

&lt;p&gt;Receiving the initial HTML doesn't mean the entire website has finished loading.&lt;/p&gt;

&lt;p&gt;The HTML may reference additional resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stylesheets.&lt;/li&gt;
&lt;li&gt;JavaScript files.&lt;/li&gt;
&lt;li&gt;Images.&lt;/li&gt;
&lt;li&gt;Fonts.&lt;/li&gt;
&lt;li&gt;Videos.&lt;/li&gt;
&lt;li&gt;API endpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The browser discovers these resources and requests them when necessary.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/styles.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/app.js"&lt;/span&gt; &lt;span class="na"&gt;defer&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt;
  &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/images/hero.webp"&lt;/span&gt;
  &lt;span class="na"&gt;alt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Website homepage preview"&lt;/span&gt;
  &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"1200"&lt;/span&gt;
  &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"600"&lt;/span&gt;
&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser needs to download and process the relevant resources to complete the page experience.&lt;/p&gt;

&lt;p&gt;This is also why developers need to understand resource loading priorities.&lt;/p&gt;

&lt;p&gt;A stylesheet can block rendering while it is being processed. A traditional synchronous script can block HTML parsing. Using &lt;code&gt;defer&lt;/code&gt;, appropriate loading priorities, and optimized resource delivery can help improve the initial experience.&lt;/p&gt;

&lt;p&gt;However, not every resource must finish loading before the browser can show useful content.&lt;/p&gt;

&lt;p&gt;The browser can progressively process and render a page as resources become available.&lt;/p&gt;

&lt;h2&gt;
  
  
  11. What Happens When You Click Something?
&lt;/h2&gt;

&lt;p&gt;The process doesn't stop after the initial page appears.&lt;/p&gt;

&lt;p&gt;When you click a button, JavaScript may respond to the interaction.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;button&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#load-products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/api/products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Unable to load products"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is what happens:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user clicks the button.&lt;/li&gt;
&lt;li&gt;JavaScript handles the click event.&lt;/li&gt;
&lt;li&gt;The browser sends a request using &lt;code&gt;fetch()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The server processes the request.&lt;/li&gt;
&lt;li&gt;The server returns a response.&lt;/li&gt;
&lt;li&gt;JavaScript processes the returned JSON.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The application can then update the interface using the received data.&lt;/p&gt;

&lt;p&gt;This is how many modern websites provide interactive experiences without reloading the entire document.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Entire Journey in One Diagram
&lt;/h2&gt;

&lt;p&gt;Let's put everything together.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User Enters a URL
        |
        v
Browser Parses URL
        |
        v
DNS Resolves Domain
        |
        v
Connection Established
(TCP or QUIC)
        |
        v
TLS Security (HTTPS)
        |
        v
HTTP Request Sent
        |
        v
Server / CDN Processes Request
        |
        v
HTTP Response Returned
        |
        v
Browser Receives HTML
        |
        v
DOM + CSSOM Created
        |
        v
Render Tree Constructed
        |
        v
Layout -&amp;gt; Paint -&amp;gt; Composite
        |
        v
Webpage Appears
        |
        v
User Interacts With Website
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a simplified overview. Real browsers and network architectures can perform several of these operations concurrently, reuse existing connections, serve cached resources, and follow different paths depending on the protocol and website infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Understanding This Process Matters for Developers
&lt;/h2&gt;

&lt;p&gt;You might wonder why a frontend developer needs to understand DNS or TLS.&lt;/p&gt;

&lt;p&gt;The answer is simple: websites don't operate in isolated layers.&lt;/p&gt;

&lt;p&gt;A frontend problem might actually originate from the backend. A slow page might be caused by DNS resolution, a delayed server response, a large JavaScript bundle, or a render-blocking stylesheet.&lt;/p&gt;

&lt;p&gt;Understanding the complete request lifecycle helps developers investigate problems more effectively.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;th&gt;Where to Investigate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Domain doesn't resolve&lt;/td&gt;
&lt;td&gt;DNS configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Secure connection fails&lt;/td&gt;
&lt;td&gt;TLS certificate and configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server returns 404&lt;/td&gt;
&lt;td&gt;URL, routing, and server configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server returns 500&lt;/td&gt;
&lt;td&gt;Backend application and logs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API response is slow&lt;/td&gt;
&lt;td&gt;Network, server, and database&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Page appears without styling&lt;/td&gt;
&lt;td&gt;CSS loading and processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Button doesn't respond&lt;/td&gt;
&lt;td&gt;JavaScript and event handling&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Instead of randomly changing code, you can investigate the layer where the problem actually occurs.&lt;/p&gt;

&lt;p&gt;Understanding these concepts is also valuable when planning real-world digital projects. From website architecture and user experience to frontend development and technical implementation, every decision contributes to the final product.&lt;/p&gt;

&lt;p&gt;At &lt;a href="https://www.thecreativeunit.com/" rel="noopener noreferrer"&gt;The Creative Unit&lt;/a&gt;, we explore creative digital solutions, website design, and development that help businesses build a stronger online presence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools Every Web Developer Should Know
&lt;/h2&gt;

&lt;p&gt;If you want to understand what happens when a browser loads a website, these tools are worth exploring.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Chrome DevTools
&lt;/h3&gt;

&lt;p&gt;The Network tab lets you inspect requests, responses, headers, status codes, and loading times.&lt;/p&gt;

&lt;p&gt;Chrome DevTools Network Documentation&lt;/p&gt;

&lt;h3&gt;
  
  
  2. DNS Lookup Tools
&lt;/h3&gt;

&lt;p&gt;Commands such as &lt;code&gt;nslookup&lt;/code&gt; and &lt;code&gt;dig&lt;/code&gt; help investigate domain resolution.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. cURL
&lt;/h3&gt;

&lt;p&gt;You can make HTTP requests directly from your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -I https://example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This displays response headers and helps you inspect server responses.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Wireshark
&lt;/h3&gt;

&lt;p&gt;Wireshark allows developers and network engineers to inspect network traffic and investigate communication problems.&lt;/p&gt;

&lt;p&gt;Visit Wireshark&lt;/p&gt;

&lt;h3&gt;
  
  
  5. MDN Web Docs
&lt;/h3&gt;

&lt;p&gt;MDN provides detailed explanations of HTTP, DNS, browser rendering, JavaScript, and other web technologies.&lt;/p&gt;

&lt;p&gt;Explore MDN Web Docs&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;The next time you type a URL and press Enter, remember that a lot more is happening than simply opening a webpage.&lt;/p&gt;

&lt;p&gt;Your browser interprets the URL, resolves the domain, establishes communication, sends an HTTP request, receives a response, processes HTML and CSS, executes JavaScript, and renders the result on your screen.&lt;/p&gt;

&lt;p&gt;Each stage plays an important role in making the modern web work.&lt;/p&gt;

&lt;p&gt;Understanding these fundamentals doesn't just help you become a better frontend developer. It also gives you a stronger foundation for backend development, API integration, debugging, security, and performance optimization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The web may feel instant to users, but behind every click is a fascinating chain of engineering decisions.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's Discuss
&lt;/h3&gt;

&lt;p&gt;Before reading this article, did you know that your browser builds the DOM and CSSOM before constructing the render tree?&lt;/p&gt;

&lt;p&gt;Which part of this process do you find most interesting: DNS, HTTP communication, server-side processing, or browser rendering?&lt;/p&gt;

&lt;p&gt;Share your thoughts in the comments!&lt;/p&gt;

&lt;h2&gt;
  
  
  Further Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;MDN: How the Web Works&lt;/li&gt;
&lt;li&gt;MDN: How Browsers Work&lt;/li&gt;
&lt;li&gt;MDN: Critical Rendering Path&lt;/li&gt;
&lt;li&gt;web.dev: Understanding the Critical Path&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;code&gt;webdev&lt;/code&gt; &lt;code&gt;beginners&lt;/code&gt; &lt;code&gt;programming&lt;/code&gt; &lt;code&gt;javascript&lt;/code&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>networking</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Responsive Design and Mobile Performance Fixes That Make a Real Difference</title>
      <dc:creator>Henrry George</dc:creator>
      <pubDate>Thu, 12 Nov 2026 20:55:37 +0000</pubDate>
      <link>https://dev.to/creativeunit/responsive-design-and-mobile-performance-fixes-that-make-a-real-difference-4241</link>
      <guid>https://dev.to/creativeunit/responsive-design-and-mobile-performance-fixes-that-make-a-real-difference-4241</guid>
      <description>&lt;p&gt;Most "mobile problems" on websites come from a small set of repeat offenders: oversized images, layout jumps, unreadable text, tiny tap targets and too much JavaScript. The good news is that none of them need a full rewrite. You can fix most of them on an existing site, one change at a time.&lt;/p&gt;

&lt;p&gt;This guide walks through twelve fixes, each with code you can adapt. It is ordered roughly from the &lt;strong&gt;&lt;a href="https://www.thecreativeunit.com/" rel="noopener noreferrer"&gt;easiest wins to fix issues&lt;/a&gt;&lt;/strong&gt; to the more involved ones, and ends with how to measure the results so you know the work paid off.&lt;/p&gt;

&lt;p&gt;Why mobile deserves its own attention&lt;/p&gt;

&lt;p&gt;A phone is not just a small desktop. It usually has a slower CPU, a less stable network, a touch screen instead of a mouse, and a user who is often distracted or in a hurry. A page that feels fine on your development laptop over fast Wi-Fi can feel sluggish on a mid-range phone over a mobile connection.&lt;/p&gt;

&lt;p&gt;Google's Core Web Vitals give us three useful measures of that experience:&lt;/p&gt;

&lt;p&gt;LCP (Largest Contentful Paint): how quickly the main content appears.&lt;br&gt;
CLS (Cumulative Layout Shift): how much the layout jumps around while loading.&lt;br&gt;
INP (Interaction to Next Paint): how quickly the page responds when someone taps or types.&lt;/p&gt;

&lt;p&gt;Every fix below maps to at least one of these, or to plain usability.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start with the viewport tag&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Without it, mobile browsers render your page at a desktop-width canvas and then shrink it down, which makes everything tiny.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;html
&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Avoid adding maximum-scale=1 or user-scalable=no. They block pinch-zoom, which is an accessibility problem for people with low vision.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Serve the right image size to each device&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A 2400px-wide image on a 390px-wide phone wastes bandwidth and slows down LCP. Use srcset and sizes so the browser can pick the best file for the screen.&lt;/p&gt;

&lt;p&gt;How it works: srcset lists the available files and their real widths. sizes tells the browser how wide the image will be displayed at different viewport sizes. The browser combines that with the device's pixel density and chooses a file.&lt;/p&gt;

&lt;p&gt;Where your build pipeline allows it, also offer modern formats such as WebP or AVIF using the  element:&lt;/p&gt;

&lt;p&gt;Browsers that don't support a format simply fall back to the next option.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Always set image dimensions to prevent layout shift&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The width and height attributes in the examples above let the browser reserve the correct amount of space before the file downloads. Without them, text jumps down when the image finally appears, which is exactly what CLS measures.&lt;/p&gt;

&lt;p&gt;Pair the attributes with this CSS so images remain fluid:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nt"&gt;img&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser uses the attributes to work out the aspect ratio, and the CSS lets the image shrink to fit its container. The same idea applies to embedded videos and iframes. The aspect-ratio property is a clean way to reserve space for them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nc"&gt;.video-embed&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;aspect-ratio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Lazy-load below the fold, prioritize above it&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A common mistake is lazy-loading everything, including the largest image at the top of the page. That delays LCP. Treat the hero or main product image as a priority and lazy-load the rest.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use fluid typography instead of a pile of breakpoints&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;clamp() lets text scale smoothly between a minimum and a maximum size, so you don't need a font-size rule at every breakpoint.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;clamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.75rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.2rem&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;2.5vw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.15&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;clamp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.95rem&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mf"&gt;0.25vw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.125rem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep body text at around 16px or larger on phones so nobody has to zoom to read it. Using rem units rather than px also respects the user's browser font-size settings.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build layouts that adapt without media queries&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;CSS Grid's auto-fit creates a card layout that reflows on its own as the container changes size:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nc"&gt;.cards&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auto-fit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;minmax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;260px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The min(100%, 260px) part is important. Without it, a column with a 260px minimum can overflow a very narrow screen and cause accidental horizontal scrolling, one of the most common mobile bugs.&lt;/p&gt;

&lt;p&gt;For simple one-dimensional layouts, Flexbox with wrapping does a similar job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nc"&gt;.row&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;flex-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.row&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="mi"&gt;240px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Use container queries for reusable components&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Media queries respond to the viewport. But a card component might sit in a wide main column on one page and a narrow sidebar on another. Container queries let the component respond to the space it actually has.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nc"&gt;.card-wrapper&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;container-type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;inline-size&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.75rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@container&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;480px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.card&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;160px&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes components more portable and reduces the number of one-off overrides in your stylesheet. Container queries are supported in all current major browsers.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make tap targets big enough&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Small links and buttons are frustrating on touchscreens, and they cause mis-taps. A good rule is at least 44 by 44 CSS pixels. WCAG 2.2 sets 24px as a minimum for a pass, and Apple's and Google's guidelines suggest larger.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="nc"&gt;.nav&lt;/span&gt; &lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;min-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;44px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;min-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;44px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.75rem&lt;/span&gt; &lt;span class="mi"&gt;1rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave some space between neighbouring targets too. A row of tightly packed text links in a footer is a classic problem. Padding the links, instead of only increasing the gap, enlarges the tappable area.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tame fonts&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Web fonts are a frequent cause of slow first paint and of text that flashes or jumps.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="k"&gt;@font-face&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-family&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Inter"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;src&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/fonts/inter-var.woff2"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"woff2"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;swap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;html&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;link&lt;/span&gt; &lt;span class="nt"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"preload"&lt;/span&gt; &lt;span class="nt"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/fonts/inter-var.woff2"&lt;/span&gt; &lt;span class="nt"&gt;as&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font"&lt;/span&gt; &lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"font/woff2"&lt;/span&gt; &lt;span class="nt"&gt;crossorigin&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use font-display: swap so text appears right away in a fallback font.&lt;br&gt;
Preload only the one or two font files used above the fold.&lt;br&gt;
Serve WOFF2 and limit the weights and character sets to what you actually use.&lt;br&gt;
Consider a variable font if you use several weights, since one file can replace many.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Control third-party scripts and JavaScript weight&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On mobile, JavaScript is often the biggest cost, because it has to be downloaded, parsed and executed on a slower CPU. It is also the main driver of poor INP.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;html
&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/analytics.js"&lt;/span&gt; &lt;span class="na"&gt;defer&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/chat-widget.js"&lt;/span&gt; &lt;span class="na"&gt;async&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Practical steps:&lt;/p&gt;

&lt;p&gt;Use defer for scripts that need the DOM and async for independent ones.&lt;br&gt;
Audit your tags. Old tracking pixels, unused chat widgets and duplicate analytics are very common.&lt;br&gt;
Split large bundles so each page loads only what it needs.&lt;br&gt;
Break up long tasks. If a click handler does heavy work, yield back to the browser so the interface can update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;js&lt;/span&gt;
&lt;span class="n"&gt;button&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"click"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;showSpinner&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// Let the browser paint before heavy work&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nf"&gt;doHeavyWork&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Respect user preferences&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Responsive design is also about the person using the device, not only the screen size. Two media queries cost almost nothing and help a lot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;prefers-reduced-motion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;reduce&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;animation-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.01ms&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;important&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;animation-iteration-count&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;important&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;transition-duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.01ms&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;important&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;scroll-behavior&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;important&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;prefers-color-scheme&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;dark&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;--bg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#0f1115&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;--text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mh"&gt;#e8eaed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Heavy animations can be uncomfortable for some users and drain battery. A dark theme also helps people who use their phone at night.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prevent horizontal scrolling and fix the usual suspects&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sideways scrolling on a phone makes a site feel broken. Common causes and quick fixes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;css&lt;/span&gt;
&lt;span class="cm"&gt;/* Long words or URLs breaking the layout */&lt;/span&gt;
&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;li&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-wrap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;anywhere&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="cm"&gt;/* Wide tables */&lt;/span&gt;
&lt;span class="nc"&gt;.table-wrap&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;overflow-x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="cm"&gt;/* Elements wider than the screen */&lt;/span&gt;
&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;before&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;after&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;border-box&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To find the culprit, open DevTools in responsive mode at 320px width and look for the element that extends past the edge. Avoid hiding the problem with overflow-x: hidden on body as a first resort, since that can mask real layout bugs and break sticky positioning.&lt;/p&gt;

&lt;p&gt;Measure before and after&lt;/p&gt;

&lt;p&gt;Fixes only matter if you can see their effect. Use a mix of lab and real-world tools:&lt;/p&gt;

&lt;p&gt;Lighthouse in Chrome DevTools, with mobile throttling turned on, for a quick lab test.&lt;br&gt;
PageSpeed Insights to see real-user field data (Core Web Vitals) when your site has enough traffic.&lt;br&gt;
Chrome DevTools Performance panel with CPU throttling to find long tasks.&lt;br&gt;
A real mid-range phone on a mobile connection. Emulators hide a lot.&lt;/p&gt;

&lt;p&gt;Change one thing at a time and re-test, so you know what helped. Lab scores fluctuate between runs, so compare trends rather than single numbers.&lt;/p&gt;

&lt;p&gt;Common mistakes to avoid&lt;br&gt;
Lazy-loading the main hero image.&lt;br&gt;
Using fixed pixel widths on containers.&lt;br&gt;
Hiding content on mobile instead of designing it properly for small screens.&lt;br&gt;
Disabling zoom.&lt;br&gt;
Loading every font weight "just in case".&lt;br&gt;
Testing only at your own device's screen size.&lt;br&gt;
Quick checklist&lt;br&gt;
 Viewport meta tag present&lt;br&gt;
 Responsive images with srcset, plus width and height&lt;br&gt;
 Hero image prioritized, others lazy-loaded&lt;br&gt;
 Fluid type with clamp()&lt;br&gt;
 Flexible grids with no horizontal scrolling at 320px&lt;br&gt;
 Tap targets at least 44px&lt;br&gt;
 Fonts preloaded, with font-display: swap&lt;br&gt;
 Scripts deferred and audited&lt;br&gt;
 Reduced-motion and dark-mode preferences respected&lt;br&gt;
 Tested on a real phone&lt;br&gt;
Final thoughts&lt;/p&gt;

&lt;p&gt;Good mobile performance rarely comes from one big trick. It comes from many small, sensible decisions: send fewer bytes, reserve space for what's coming, keep the main thread free, and make everything easy to read and tap. Start with the quick wins at the top of this list, measure, and work down.&lt;/p&gt;

&lt;p&gt;Which of these has made the biggest difference on your projects? Let me know in the comments.&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>mobile</category>
      <category>performance</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Beyond Good Looks: How to Build a Business Website That Actually Works</title>
      <dc:creator>Henrry George</dc:creator>
      <pubDate>Mon, 09 Nov 2026 17:43:03 +0000</pubDate>
      <link>https://dev.to/creativeunit/beyond-good-looks-how-to-build-a-business-website-that-actually-works-fok</link>
      <guid>https://dev.to/creativeunit/beyond-good-looks-how-to-build-a-business-website-that-actually-works-fok</guid>
      <description>&lt;p&gt;A business website is often the first place potential customers interact with a company. Before contacting a sales team, requesting a quote, or purchasing a product, people usually want to understand what a business offers and whether they can trust it.&lt;/p&gt;

&lt;p&gt;But here's something worth thinking about: A beautiful website doesn't automatically make a successful website.&lt;/p&gt;

&lt;p&gt;A website can have &lt;a href="https://thecreativeunit.substack.com/p/brand-strategy-vs-brand-identity" rel="noopener noreferrer"&gt;impressive animations&lt;/a&gt;, modern typography, attractive colors, and stunning images while still failing to help visitors accomplish anything.&lt;/p&gt;

&lt;p&gt;A successful business website needs more than visual appeal. It needs a clear purpose, thoughtful user experience, reliable development, fast performance, and a structure that helps visitors find what they're looking for.&lt;/p&gt;

&lt;p&gt;Let's explore the essential elements that make a business website genuinely effective.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start With a Clear Purpose&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before choosing a framework, designing a homepage, or writing code, understand why the website needs to exist.&lt;/p&gt;

&lt;p&gt;Different businesses have different website objectives.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;An online store wants visitors to discover products and complete purchases.&lt;/p&gt;

&lt;p&gt;A consulting company wants to generate qualified inquiries.&lt;/p&gt;

&lt;p&gt;A SaaS startup wants users to understand its product and start a trial.&lt;/p&gt;

&lt;p&gt;A creative agency wants to communicate its capabilities and showcase its portfolio.&lt;/p&gt;

&lt;p&gt;A personal brand wants to establish credibility and attract opportunities.&lt;/p&gt;

&lt;p&gt;These objectives should influence every design and development decision.&lt;/p&gt;

&lt;p&gt;A useful starting exercise is to answer three questions:&lt;/p&gt;

&lt;p&gt;Who is the website intended for?&lt;/p&gt;

&lt;p&gt;What problem does it solve for visitors?&lt;/p&gt;

&lt;p&gt;What should visitors do after exploring it?&lt;/p&gt;

&lt;p&gt;Without these answers, it's easy to build a website that looks impressive but lacks direction.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make User Experience a Priority&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;User experience (UX) determines how easily people can interact with a website.&lt;/p&gt;

&lt;p&gt;Think about the last time you visited a website and couldn't find its contact information, struggled with its navigation, or abandoned a form because it was unnecessarily complicated.&lt;/p&gt;

&lt;p&gt;That's a UX problem.&lt;/p&gt;

&lt;p&gt;Good UX reduces friction and makes important information accessible.&lt;/p&gt;

&lt;p&gt;Here are some practical ways to improve it:&lt;/p&gt;

&lt;p&gt;Keep navigation simple.&lt;/p&gt;

&lt;p&gt;Visitors shouldn't need to explore five different menus to find basic information. Use descriptive navigation labels and organize pages logically.&lt;/p&gt;

&lt;p&gt;Make important information easy to find.&lt;/p&gt;

&lt;p&gt;Your services, pricing information, product details, and contact options should be accessible without unnecessary searching.&lt;/p&gt;

&lt;p&gt;Use consistent design patterns.&lt;/p&gt;

&lt;p&gt;Buttons, forms, headings, and navigation elements should behave consistently across the website.&lt;/p&gt;

&lt;p&gt;Design for real users.&lt;/p&gt;

&lt;p&gt;Avoid making decisions based entirely on personal preferences. Consider how your target audience thinks, browses, and interacts with digital products.&lt;/p&gt;

&lt;p&gt;A good UX doesn't draw unnecessary attention to itself. It makes the entire experience feel natural.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build a Responsive Website for Every Screen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;People access websites through smartphones, tablets, laptops, and desktop computers.&lt;/p&gt;

&lt;p&gt;A layout that works perfectly on a large monitor might become frustrating on a smaller screen.&lt;/p&gt;

&lt;p&gt;Responsive web design ensures that website layouts adapt to different screen sizes.&lt;/p&gt;

&lt;p&gt;Some important practices include:&lt;/p&gt;

&lt;p&gt;Use flexible layouts instead of fixed-width containers.&lt;/p&gt;

&lt;p&gt;Apply CSS media queries where necessary.&lt;/p&gt;

&lt;p&gt;Use responsive images.&lt;/p&gt;

&lt;p&gt;Avoid horizontal scrolling.&lt;/p&gt;

&lt;p&gt;Make buttons and interactive elements comfortable to use on touchscreens.&lt;/p&gt;

&lt;p&gt;Test navigation menus on smaller devices.&lt;/p&gt;

&lt;p&gt;Check text readability across different screen sizes.&lt;/p&gt;

&lt;p&gt;For example, a simple responsive container can be created with CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="kt"&gt;%&lt;/span&gt; &lt;span class="n"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;32px&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1200px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;margin-inline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;grid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;768px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;480px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.grid&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;grid-template-columns&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1fr&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example creates three columns on larger screens, two on medium screens, and one on smaller screens.&lt;/p&gt;

&lt;p&gt;Responsive design should be part of the development process from the beginning, not something added just before launch.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Website Performance Matters More Than You Think&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Website speed affects usability.&lt;/p&gt;

&lt;p&gt;When pages take too long to load, visitors may leave before they even see the content.&lt;/p&gt;

&lt;p&gt;Performance optimization should therefore be considered during development.&lt;/p&gt;

&lt;p&gt;Here are several practical improvements:&lt;/p&gt;

&lt;p&gt;Optimize images&lt;/p&gt;

&lt;p&gt;Large image files are a common reason websites load slowly.&lt;/p&gt;

&lt;p&gt;Use modern image formats such as WebP or AVIF where supported. Resize images according to their actual display dimensions and avoid unnecessarily large files.&lt;/p&gt;

&lt;p&gt;Minimize unnecessary JavaScript&lt;/p&gt;

&lt;p&gt;JavaScript can add useful functionality, but excessive scripts can increase loading and execution time.&lt;/p&gt;

&lt;p&gt;Only load the functionality your website actually needs.&lt;/p&gt;

&lt;p&gt;Use caching&lt;/p&gt;

&lt;p&gt;Browser caching allows returning visitors to reuse certain previously downloaded resources instead of downloading everything again.&lt;/p&gt;

&lt;p&gt;Reduce unnecessary HTTP requests&lt;/p&gt;

&lt;p&gt;Combine resources where appropriate, remove unused libraries, and avoid loading third-party scripts without a clear reason.&lt;/p&gt;

&lt;p&gt;Monitor Core Web Vitals&lt;/p&gt;

&lt;p&gt;Google's Core Web Vitals provide useful measurements of real-world user experience.&lt;/p&gt;

&lt;p&gt;The three primary metrics are:&lt;/p&gt;

&lt;p&gt;LCP (Largest Contentful Paint): Measures how quickly the main content becomes visible.&lt;/p&gt;

&lt;p&gt;INP (Interaction to Next Paint): Measures responsiveness to user interactions.&lt;/p&gt;

&lt;p&gt;CLS (Cumulative Layout Shift): Measures unexpected visual movement during page loading.&lt;/p&gt;

&lt;p&gt;These metrics help developers identify problems that may not be obvious during a quick visual inspection.&lt;/p&gt;

&lt;p&gt;You can learn more through Google's official documentation:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://web.dev/articles/vitals" rel="noopener noreferrer"&gt;https://web.dev/articles/vitals&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Design With Conversion in Mind&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A business website should help visitors take meaningful actions.&lt;/p&gt;

&lt;p&gt;This doesn't mean placing a large promotional button in every section. It means creating a logical journey that helps visitors move from understanding a business to deciding what to do next.&lt;/p&gt;

&lt;p&gt;Consider a service-based business.&lt;/p&gt;

&lt;p&gt;A potential customer might follow this journey:&lt;/p&gt;

&lt;p&gt;Discover the website through search or social media.&lt;/p&gt;

&lt;p&gt;Understand what the business offers.&lt;/p&gt;

&lt;p&gt;Explore relevant services.&lt;/p&gt;

&lt;p&gt;Review previous projects or examples.&lt;/p&gt;

&lt;p&gt;Read testimonials or supporting information.&lt;/p&gt;

&lt;p&gt;Contact the business.&lt;/p&gt;

&lt;p&gt;Each page should support this journey.&lt;/p&gt;

&lt;p&gt;For example, a service page should clearly communicate:&lt;/p&gt;

&lt;p&gt;What the service includes.&lt;/p&gt;

&lt;p&gt;Who the service is suitable for.&lt;/p&gt;

&lt;p&gt;What problems it addresses.&lt;/p&gt;

&lt;p&gt;What the process looks like.&lt;/p&gt;

&lt;p&gt;How visitors can request more information.&lt;/p&gt;

&lt;p&gt;Calls to action should be specific and relevant.&lt;/p&gt;

&lt;p&gt;Instead of using vague labels such as "Click Here," consider clearer alternatives:&lt;/p&gt;

&lt;p&gt;Explore Our Services&lt;/p&gt;

&lt;p&gt;View Project Examples&lt;/p&gt;

&lt;p&gt;Request a Consultation&lt;/p&gt;

&lt;p&gt;Get a Project Estimate&lt;/p&gt;

&lt;p&gt;The objective is to make the next step obvious without making the experience feel pushy.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don't Ignore Accessibility&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Accessibility is an essential part of responsible website development.&lt;/p&gt;

&lt;p&gt;A website should be usable by people with different abilities, including visitors who rely on keyboards, screen readers, or other assistive technologies.&lt;/p&gt;

&lt;p&gt;Some important accessibility practices include:&lt;/p&gt;

&lt;p&gt;Use semantic HTML.&lt;/p&gt;

&lt;p&gt;Elements such as &lt;/p&gt;, , , , and  help communicate page structure.

&lt;p&gt;Provide meaningful alternative text.&lt;/p&gt;

&lt;p&gt;Images that communicate information should have appropriate alt descriptions.&lt;/p&gt;

&lt;p&gt;Maintain sufficient color contrast.&lt;/p&gt;

&lt;p&gt;Text should remain readable against its background.&lt;/p&gt;

&lt;p&gt;Make keyboard navigation possible.&lt;/p&gt;

&lt;p&gt;Visitors should be able to access interactive elements without relying entirely on a mouse.&lt;/p&gt;

&lt;p&gt;Label form fields properly.&lt;/p&gt;

&lt;p&gt;Forms should clearly communicate what information users need to provide.&lt;/p&gt;

&lt;p&gt;For further guidance, explore the Web Content Accessibility Guidelines (WCAG):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noopener noreferrer"&gt;https://www.w3.org/WAI/standards-guidelines/wcag/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Accessibility isn't just another technical checkbox. It helps create better experiences for a wider range of people.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose the Right Technology Stack&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is no single technology stack that works best for every business website.&lt;/p&gt;

&lt;p&gt;The right choice depends on the project's complexity, available resources, functionality, and long-term maintenance requirements.&lt;/p&gt;

&lt;p&gt;Here are a few common options:&lt;/p&gt;

&lt;p&gt;Technology&lt;/p&gt;

&lt;p&gt;Suitable For&lt;/p&gt;

&lt;p&gt;WordPress&lt;/p&gt;

&lt;p&gt;Business websites, blogs, and content management&lt;/p&gt;

&lt;p&gt;Shopify&lt;/p&gt;

&lt;p&gt;Ecommerce websites&lt;/p&gt;

&lt;p&gt;React&lt;/p&gt;

&lt;p&gt;Interactive user interfaces&lt;/p&gt;

&lt;p&gt;Next.js&lt;/p&gt;

&lt;p&gt;Modern web applications and content-driven websites&lt;/p&gt;

&lt;p&gt;Node.js&lt;/p&gt;

&lt;p&gt;Backend development and APIs&lt;/p&gt;

&lt;p&gt;Laravel&lt;/p&gt;

&lt;p&gt;Backend systems and business applications&lt;/p&gt;

&lt;p&gt;PostgreSQL&lt;/p&gt;

&lt;p&gt;Relational data management&lt;/p&gt;

&lt;p&gt;MongoDB&lt;/p&gt;

&lt;p&gt;Document-oriented data storage&lt;/p&gt;

&lt;p&gt;For example, a small business website with regularly updated blog content might work well with WordPress.&lt;/p&gt;

&lt;p&gt;A startup building an interactive SaaS platform might benefit from a React-based frontend and a dedicated backend.&lt;/p&gt;

&lt;p&gt;The important thing is to avoid choosing technologies simply because they are popular.&lt;/p&gt;

&lt;p&gt;A simpler architecture that meets the actual requirements is often better than an unnecessarily complicated stack.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make SEO Part of the Development Process&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Search engine optimization shouldn't begin several months after a website launches.&lt;/p&gt;

&lt;p&gt;Technical and on-page SEO considerations should be included during planning and development.&lt;/p&gt;

&lt;p&gt;Start with these fundamentals:&lt;/p&gt;

&lt;p&gt;Give every important page a descriptive title.&lt;/p&gt;

&lt;p&gt;Write unique meta descriptions.&lt;/p&gt;

&lt;p&gt;Use logical heading structures.&lt;/p&gt;

&lt;p&gt;Create readable URLs.&lt;/p&gt;

&lt;p&gt;Add descriptive image alt text.&lt;/p&gt;

&lt;p&gt;Implement internal links between relevant pages.&lt;/p&gt;

&lt;p&gt;Generate and submit an XML sitemap.&lt;/p&gt;

&lt;p&gt;Ensure search engines can access important content.&lt;/p&gt;

&lt;p&gt;Use structured data when appropriate.&lt;/p&gt;

&lt;p&gt;Monitor indexing and search performance.&lt;/p&gt;

&lt;p&gt;Content quality is equally important.&lt;/p&gt;

&lt;p&gt;A website should answer the questions its intended audience actually has.&lt;/p&gt;

&lt;p&gt;For example, a web development company could publish useful articles about website maintenance, responsive design, performance optimization, development frameworks, and common website problems.&lt;/p&gt;

&lt;p&gt;The goal should be to help readers understand a subject rather than simply repeat keywords.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Test Everything Before Launch&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A website may look complete during development but still contain issues that affect real users.&lt;/p&gt;

&lt;p&gt;Testing helps identify these problems before they become more expensive to fix.&lt;/p&gt;

&lt;p&gt;A practical pre-launch checklist includes:&lt;/p&gt;

&lt;p&gt;Test all navigation links.&lt;/p&gt;

&lt;p&gt;Check contact forms.&lt;/p&gt;

&lt;p&gt;Verify responsive layouts.&lt;/p&gt;

&lt;p&gt;Test on multiple browsers.&lt;/p&gt;

&lt;p&gt;Check image loading.&lt;/p&gt;

&lt;p&gt;Review page titles and metadata.&lt;/p&gt;

&lt;p&gt;Test keyboard navigation.&lt;/p&gt;

&lt;p&gt;Check for broken links.&lt;/p&gt;

&lt;p&gt;Verify SSL configuration.&lt;/p&gt;

&lt;p&gt;Review loading performance.&lt;/p&gt;

&lt;p&gt;Confirm analytics and tracking where needed.&lt;/p&gt;

&lt;p&gt;Check important pages on mobile devices.&lt;/p&gt;

&lt;p&gt;Useful testing tools include Google Lighthouse, PageSpeed Insights, Chrome DevTools, and browser-based accessibility testing tools.&lt;/p&gt;

&lt;p&gt;Testing should continue after launch because websites, browsers, plugins, and user expectations change over time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Website Is Never Really Finished&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the biggest mistakes businesses make is treating website launch as the final step.&lt;/p&gt;

&lt;p&gt;In reality, launch is the beginning of another phase.&lt;/p&gt;

&lt;p&gt;After publishing a website, businesses should monitor how visitors interact with it and identify opportunities for improvement.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;Are visitors reaching important service pages?&lt;/p&gt;

&lt;p&gt;Are users abandoning forms?&lt;/p&gt;

&lt;p&gt;Which pages attract the most organic traffic?&lt;/p&gt;

&lt;p&gt;Are mobile visitors experiencing usability problems?&lt;/p&gt;

&lt;p&gt;Are important pages loading efficiently?&lt;/p&gt;

&lt;p&gt;Which calls to action receive meaningful engagement?&lt;/p&gt;

&lt;p&gt;Analytics can help answer these questions.&lt;/p&gt;

&lt;p&gt;Based on the findings, teams can improve navigation, update content, simplify forms, optimize images, or redesign confusing sections.&lt;/p&gt;

&lt;p&gt;Even small improvements can make a meaningful difference when they're based on actual user behavior.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;Building an effective business website requires more than choosing a modern template or using the latest JavaScript framework.&lt;/p&gt;

&lt;p&gt;It requires a combination of strategy, user experience, responsive design, performance optimization, accessibility, technical implementation, and continuous improvement.&lt;/p&gt;

&lt;p&gt;The best websites aren't necessarily the ones with the most complicated animations or the largest number of features.&lt;/p&gt;

&lt;p&gt;They're the ones that understand their audience, communicate clearly, work reliably, and make it easy for visitors to accomplish their goals.&lt;/p&gt;

&lt;p&gt;Whether you're building a website for a startup, an established company, an online store, or a personal brand, remember one simple principle:&lt;/p&gt;

&lt;p&gt;Don't just build a website that looks good. Build one that works well for the people using it.&lt;/p&gt;

&lt;p&gt;That's what turns a collection of web pages into a genuinely useful business asset.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ux</category>
      <category>webdesign</category>
      <category>seo</category>
    </item>
  </channel>
</rss>
