<?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: Krushna Nanda</title>
    <description>The latest articles on DEV Community by Krushna Nanda (@krushnananda).</description>
    <link>https://dev.to/krushnananda</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2981890%2F83c4bcbe-51fa-445e-98cd-dd620a872fce.png</url>
      <title>DEV Community: Krushna Nanda</title>
      <link>https://dev.to/krushnananda</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/krushnananda"/>
    <language>en</language>
    <item>
      <title>How to Fix "No Internet" Issue in Live Server When DevTools is Open</title>
      <dc:creator>Krushna Nanda</dc:creator>
      <pubDate>Thu, 27 Mar 2025 13:34:15 +0000</pubDate>
      <link>https://dev.to/krushnananda/how-to-fix-no-internet-issue-in-live-server-when-devtools-is-open-c9h</link>
      <guid>https://dev.to/krushnananda/how-to-fix-no-internet-issue-in-live-server-when-devtools-is-open-c9h</guid>
      <description>&lt;h3&gt;
  
  
  Discover why Live Server displays a "No Internet" error when DevTools is active during HTML or JS edits.
&lt;/h3&gt;

&lt;p&gt;_&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;em&gt;Problem Statement&lt;/em&gt;
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;Why does Live Server show a "No Internet" page when I open DevTools and make changes to my HTML file?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;W&lt;/strong&gt;hen working with Live Server in VS Code, your webpage should refresh automatically when you make some changes to your HTML or JS File . However, some developers encounter an issue where the page refreshes when they make changes to their HTML or JavaScript file. However, when Chrome DevTools is open and changes are made to the HTML or JavaScript file, the page refreshes but unexpectedly displays a ' No Internet ' screen instead of updating correctly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Simply follow the process outlined below :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Understanding the Cause&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The issue arises when two settings in Chrome DevTools—Offline Mode and Disable Cache—are enabled at the same time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Offline Mode (Service Workers)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This feature in DevTools is used to simulate an offline environment.&lt;/p&gt;

&lt;p&gt;If enabled, the browser will behave as if there is no internet connection, even if you're actually online.&lt;/p&gt;

&lt;p&gt;When Live Server attempts to reload the page, it fails due to the forced offline state, leading to the "No Internet" error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Disable Cache (Network Tab)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When "Disable Cache" is enabled, the browser does not use cached files and forces a full reload of all assets.&lt;/p&gt;

&lt;p&gt;If this setting is active while Offline Mode is enabled, the browser will attempt to fetch a fresh copy of the page but will be blocked by the offline restriction.&lt;/p&gt;

&lt;p&gt;This results in a failed reload, causing the "No Internet" page to appear.&lt;/p&gt;

&lt;p&gt;To resolve this, you need to disable these settings in DevTools.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step-by-Step Solution :
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1️⃣ —→ Disable "Offline Mode" in DevTools
&lt;/h4&gt;

&lt;p&gt;To ensure your browser recognizes your actual internet connection, follow these steps:  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open DevTools using &lt;code&gt;F12&lt;/code&gt; or &lt;code&gt;Ctrl + Shift + I&lt;/code&gt;.
&lt;/li&gt;
&lt;li&gt;Navigate to the &lt;strong&gt;Application&lt;/strong&gt; tab.
&lt;/li&gt;
&lt;li&gt;In the left sidebar, scroll down and click on &lt;strong&gt;Service Workers&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;Locate the &lt;strong&gt;"Offline"&lt;/strong&gt; checkbox and uncheck it if enabled.
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;See the image below for a more clearer picture.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxqg03nttgg4ajs7xdg4h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxqg03nttgg4ajs7xdg4h.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  2️⃣ ——&amp;gt; Uncheck "Disable Cache" in the Network Tab
&lt;/h4&gt;

&lt;p&gt;Disabling this setting ensures the browser can use cached resources if needed, preventing unnecessary reload failures.  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open DevTools (&lt;code&gt;F12&lt;/code&gt; or &lt;code&gt;Ctrl + Shift + I&lt;/code&gt;).
&lt;/li&gt;
&lt;li&gt;Click on the &lt;strong&gt;Network&lt;/strong&gt; tab.
&lt;/li&gt;
&lt;li&gt;Locate the &lt;strong&gt;"Disable Cache"&lt;/strong&gt; checkbox and uncheck it.
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fntpce0rjgcaid1s6nov1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fntpce0rjgcaid1s6nov1.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86fl0tgqsnz2i8rnf10y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F86fl0tgqsnz2i8rnf10y.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By &lt;em&gt;turning off&lt;/em&gt; &lt;strong&gt;Offline Mode&lt;/strong&gt; and &lt;em&gt;unchecking&lt;/em&gt; &lt;strong&gt;Disable Cache&lt;/strong&gt;, Live Server works smoothly, and your changes show up instantly—no more "No Internet" errors!&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
  </channel>
</rss>
