<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vinoth Raja on Medium]]></title>
        <description><![CDATA[Stories by Vinoth Raja on Medium]]></description>
        <link>https://medium.com/@vinoth-raja?source=rss-7eb0d56d81d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dX8StgjOq-OmTpd91e6TYA@2x.jpeg</url>
            <title>Stories by Vinoth Raja on Medium</title>
            <link>https://medium.com/@vinoth-raja?source=rss-7eb0d56d81d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 00:10:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vinoth-raja/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[LocalStorage Vs SessionStorage In-Depth]]></title>
            <link>https://vinoth-raja.medium.com/sessionstorage-and-localstorage-in-depth-8c131d4ef643?source=rss-7eb0d56d81d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c131d4ef643</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ui-ux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Vinoth Raja]]></dc:creator>
            <pubDate>Sat, 23 Oct 2021 19:37:42 GMT</pubDate>
            <atom:updated>2021-10-24T06:55:52.306Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s discuss a complete guide for localstorage vs sessionstorage, #WhyWebStorage #Syntax #Exception #StorageEvent #Synchronous #BrowserSupport #WebStorageSize</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XPb7VFdfO2KQBefv" /><figcaption>Photo by <a href="https://unsplash.com/@christinhumephoto?utm_source=medium&amp;utm_medium=referral">Christin Hume</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Web storage is used to store the data in the client browser. There are two types of web storage available.</p><ol><li><strong>Session storage</strong> — store the data in a particular session, which means if a browser is closed (even tab), the session storage will be permanently deleted from the browser.</li><li><strong>Local storage</strong> — store the data in the browser without expiration, even user closed the browser. Local storage won’t be deleted from the browser.</li></ol><p><strong>Why web storage is required</strong></p><p>Before HTML 5 Web storage API was introduced, application data is stored in cookies. a cookie can store a very little amount of data and it will pass through every request to the server. To avoid this scenario web storage is introduced which can store a large amount of data.</p><p><strong>Browser Support</strong></p><p>Web storage supports the major latest version browser except for opera mini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*635ZTD_d7YhLIOvne5Iy6w.png" /><figcaption><a href="https://caniuse.com/?search=webstorage">Web Storage Browser Support</a></figcaption></figure><h3>Feature Detecting Session and LocalStorage</h3><p>Before using web storage, check browser support for localStorage and sessionStorage</p><pre>if (typeof(Storage) !== &quot;undefined&quot;) {<br>  // <em>Code for localStorage/sessionStorage.</em><br>} else {<br>  // No Web Storage support..<br>}</pre><p>Session &amp; local storage are defined by key/pair values.</p><pre><em>// Store value on browser for duration of the session</em><br>sessionStorage.setItem(&#39;key&#39;, &#39;value&#39;);<br><br><em>// Retrieve value (gets deleted when browser is closed and re-opened) ...</em><br>console.log(sessionStorage.getItem(&#39;key&#39;));<br><br><em>// Store value on the browser beyond the duration of the session</em><br>localStorage.setItem(&#39;key&#39;, &#39;value&#39;);<br><br><em>// Retrieve value (persists even after closing and re-opening the browser)</em><br>console.log(localStorage.getItem(&#39;key&#39;));</pre><pre><em>// Store an object instead of a string</em><br>localStorage.setItem(&#39;key&#39;, {name: &#39;value&#39;});<br>console.log(<strong>typeof</strong> localStorage.getItem(&#39;key&#39;)); <em>// string</em><br><br><em>// Store an integer instead of a string</em><br>localStorage.setItem(&#39;key&#39;, 1);<br>console.log(<strong>typeof</strong> localStorage.getItem(&#39;key&#39;)); <em>// string</em><br><br><em>// Store an object using JSON</em><br>localStorage.setItem(&#39;key&#39;, JSON.stringify({name: &#39;value&#39;}));<br>console.log(JSON.parse(localStorage.getItem(&#39;key&#39;)).name); <em>// value</em></pre><p><strong>Delete session storage and local storage</strong></p><pre>localStorage.removeItem(&#39;test&#39;); //remove particular key</pre><pre>sesionStorage.removeItem(&#39;test&#39;); //remove particular key</pre><pre>Storage.clear(); //Clear all keys and values in storage object</pre><p><strong>Web Storage Size</strong></p><p>Max size of web storage 5MB per domain. If exceeded the max size we will get the DOMExcepition for exceeding the quota. Sometimes private browsing/incognito mode web storage size might be zero bytes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qH-0vk_h-sX12sn9YSzLw.png" /><figcaption>Exceeded data size error</figcaption></figure><p><strong>Exception</strong></p><p>Two might happen for web storage in runtime.</p><ol><li>Setting the storage is a failure, then throw a “<a href="https://webidl.spec.whatwg.org/#securityerror">SecurityError</a>“</li><li>If exceeded the storage data — “<a href="https://webidl.spec.whatwg.org/#quotaexceedederror">QuotaExceededError</a>“</li></ol><p><strong>Synchronous</strong></p><p>Session and Local storage are synchronous, its operation will run at a time. For complex applications. It might cost the application performance in runtime.</p><p><strong>Storage Event</strong></p><p>Storage Event fire if any session or local storage key or values change.</p><pre>window.addEventListener(&#39;storage&#39;, function(e) {<br>  console.log(e.key); // Which storage key modified<br>  console.log(e.oldValue); // storage key old value <br>  console.log(e.newValue); // storage key new value <br>  console.log(e.url); // that particular url for that page <br>  console.log(JSON.stringify(e.storageArea)); // returns all storage data <br>});</pre><p>To see web storage in the browser open developer by pressing the F12 key from your browser. Under the application tab, we can see the left side Menu local &amp; session storage. you can directly add a new key/value or edit the exiting key &amp; value pairs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lr25osrAV9LQrTHbpvrarg.png" /></figure><p><strong>Conclusion</strong></p><p>Web storage is useful to store data without calling server data each time. Remember storing huge data might affect performance, hence it’s synchronous, never store sensitive data, It&#39;s not that secure and not encrypted. Always validate the data with encoding and escape data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c131d4ef643" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Modify Outgoing Request Headers With a Chrome Extension]]></title>
            <link>https://vinoth-raja.medium.com/how-to-modify-http-request-and-response-header-537856ffc675?source=rss-7eb0d56d81d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/537856ffc675</guid>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[extension]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Vinoth Raja]]></dc:creator>
            <pubDate>Mon, 18 Oct 2021 13:22:24 GMT</pubDate>
            <atom:updated>2021-10-20T06:20:48.917Z</atom:updated>
            <content:encoded><![CDATA[<p>We can able to intercept the HTTP Request &amp; Response headers from the browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mh2LUoR88k3wmliz" /><figcaption>Photo by <a href="https://unsplash.com/@wasdrew?utm_source=medium&amp;utm_medium=referral">Andras Vas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Install the <a href="https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en">Mod Header</a> extension in chrome or firefox browser.</p><p><a href="https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en">ModHeader</a></p><p>Mod Header extension is very useful to modify HTTP requests &amp; response headers from the browser. It has features of adding a profile, autocomplete for headers, Url Pattern wise set HTTP headers, and redirect URLs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohcemBIU5lu5G0Evy5xPnw.png" /></figure><p>After you have added the request header for the filtered pattern. Request header started passing from browser to your server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*USV_M1vWp-xwjpwYXR2b0A.png" /></figure><p>Open developer tool from the browser, Now you can able to see (debug=true) added request header started to show. refer above pic</p><p>If you like my post. Please follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=537856ffc675" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile And Desktop Browser Testing With User-Agent Switcher]]></title>
            <link>https://vinoth-raja.medium.com/mobile-and-desktop-browsers-testing-with-user-agent-switcher-365c6a275d6e?source=rss-7eb0d56d81d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/365c6a275d6e</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[chrome]]></category>
            <dc:creator><![CDATA[Vinoth Raja]]></dc:creator>
            <pubDate>Sat, 16 Oct 2021 14:38:59 GMT</pubDate>
            <atom:updated>2021-10-16T16:41:35.459Z</atom:updated>
            <content:encoded><![CDATA[<p>Testing different types of Mobile And Desktop browsers using the user-agent switcher</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t_eXsUOAsudXQlHf" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Install chrome extension <a href="https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg">User-Agent Switcher</a></p><p><a href="https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg">User-Agent Switcher for Chrome</a></p><p>Go to the <a href="https://www.whatismybrowser.com/">whatismybrowser</a> site and you can see the <a href="https://developers.whatismybrowser.com/useragents/explore/?utm_source=whatismybrowsercom&amp;utm_medium=internal&amp;utm_campaign=developers-tools-index">list of user agents</a> available, copy which browser user agent you want to test.</p><p>For example:-</p><p>Below is one Samsung browser user agent string please copy.</p><p><a href="https://developers.whatismybrowser.com/useragents/parse/264014samsung-browser-linux-smart-tv-webkit">Mozilla/5.0 (SMART-TV; Linux; Tizen 2.4.0) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.1 TV Safari/538.1</a></p><p>Right Click the User-Agent Switcher extension from chrome browser, Paste the copied user agent string, add indicator flag and finish add the custom user agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8EeTQFnCo3X_XEnMf2B7gQ.png" /></figure><p>After that, you can able to see the indicator flag in the User-agent extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*QnvlxYAAVQiHZe7-ycfBNw.png" /></figure><p>To verify the Headers section for the request in User-Agent updated. successfully setup done for custom User-Agent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6gz_zNDhw7fIuk_b6bbLA.png" /></figure><p>If you like my post, Follow :-)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=365c6a275d6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Chrome Extensions for UI Development and Website Performance]]></title>
            <link>https://vinoth-raja.medium.com/top-10-chrome-extensions-for-ui-development-and-website-performance-c05ed4b90a22?source=rss-7eb0d56d81d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c05ed4b90a22</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[top-10]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Vinoth Raja]]></dc:creator>
            <pubDate>Fri, 15 Oct 2021 19:30:25 GMT</pubDate>
            <atom:updated>2021-10-17T18:26:50.752Z</atom:updated>
            <content:encoded><![CDATA[<p>With correct chrome extension, we can identify and improve the website performance and UI development</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dqPlraJp7reti-My" /><figcaption>Photo by <a href="https://unsplash.com/@richygreat?utm_source=medium&amp;utm_medium=referral">Richy Great</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The below chrome extensions are useful to identify the web page performance &amp; Improve the UI Development.</p><h4>1. JSONView</h4><p><a href="https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?utm_source=chrome-app-launcher-info-dialog">JSONView</a></p><p>The developer can able to see API responses in JSON format. Developers can easy way to search their response data.</p><h4>2. JavaScript and CSS Code Beautifier</h4><p><a href="https://chrome.google.com/webstore/detail/javascript-and-css-code-b/iiglodndmmefofehaibmaignglbpdald?utm_source=chrome-app-launcher-info-dialog">JavaScript and CSS Code Beautifier</a></p><p>It can beautify the CSS and JS code, we can open beautify js &amp; CSS, it gives better readability.</p><h4><strong>3. Edit This Cookie</strong></h4><p><a href="https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg">Chrome Web Store</a></p><p>Add, delete and create the cookie without using the developer tool. import/export is also an easy way to do it.</p><h4>4. Web Developer</h4><p><a href="https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm?utm_source=chrome-app-launcher-info-dialog">Web Developer</a></p><p>It gives various options to provide enable and disable some features on a webpage. it helped to find the issues in web pages.</p><h4>5. User-Agent Switcher for Chrome</h4><p><a href="https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg?utm_source=chrome-app-launcher-info-dialog">User-Agent Switcher for Chrome</a></p><p>It’s a good extension to test the different types of browser user agent-based code. It has the default list of User-Agent List and it gives the options to add the custom User-Agent. We can use it for different types of browser User Agents.</p><h4>6. Quick source viewer</h4><p><a href="https://chrome.google.com/webstore/detail/quick-source-viewer/cfmcghennfbpmhemnnfjhkdmnbidpanb?utm_source=chrome-app-launcher-info-dialog">Quick source viewer</a></p><p>The tool can see a quick view of Javascript, CSS, JSON for the whole page. It will also show inline CSS &amp; JS.</p><h4>7. Page load time</h4><p><a href="https://chrome.google.com/webstore/detail/page-load-time/fploionmjgeclbkemipmkogoaohcdbig?utm_source=chrome-app-launcher-info-dialog">Page load time</a></p><p>It will show the page performance timings from redirect webpage to the end of webpage loaded. It is based on the <a href="https://www.w3.org/TR/navigation-timing-2/">navigation timing API</a></p><h4>8. PageSpeed Insights (with PNaCl)</h4><p><a href="https://chrome.google.com/webstore/detail/pagespeed-insights-with-p/lanlbpjbalfkflkhegagflkgcfklnbnh?utm_source=chrome-app-launcher-info-dialog">PageSpeed Insights (with PNaCl)</a></p><p>It analyzes the webpage and gives suggestions for performance, and as well as it provides fixes as well.</p><h4>10. Wappalyzer</h4><p><a href="https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?utm_source=chrome-app-launcher-info-dialog">Wappalyzer</a></p><p>It’s able to detect web technologies, so developers can able to see various technologies used on the page. They can learn knowledge on that technology</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c05ed4b90a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>