<?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: C M Pandey</title>
    <description>The latest articles on DEV Community by C M Pandey (@cmcodes).</description>
    <link>https://dev.to/cmcodes</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%2F236391%2F7dc20b2e-329d-4f49-a5a9-b3b99816b21d.png</url>
      <title>DEV Community: C M Pandey</title>
      <link>https://dev.to/cmcodes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cmcodes"/>
    <language>en</language>
    <item>
      <title>My Hacktoberfest 2020 experience 😄🎉</title>
      <dc:creator>C M Pandey</dc:creator>
      <pubDate>Tue, 03 Nov 2020 13:28:53 +0000</pubDate>
      <link>https://dev.to/cmcodes/my-hacktoberfest-2020-experience-b5n</link>
      <guid>https://dev.to/cmcodes/my-hacktoberfest-2020-experience-b5n</guid>
      <description>&lt;h3&gt;
  
  
  What I contributed to Hacktoberfest 2020?
&lt;/h3&gt;

&lt;p&gt;I created a basic repo for newbies to get started with open-source.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/cmcodes1" rel="noopener noreferrer"&gt;
        cmcodes1
      &lt;/a&gt; / &lt;a href="https://github.com/cmcodes1/css-puns" rel="noopener noreferrer"&gt;
        css-puns
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Do you know a CSS pun? 😄 Put it over here and make others laugh! 😉
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;css-puns&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Do you know a CSS pun? 😄 Put it over here and make others laugh! 😉&lt;/p&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;luck&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;display&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt;none
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;middle-finger&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;display&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt;flex;
  &lt;span class="pl-c1"&gt;justify-content&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt;center;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;wealthy&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;top&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; &lt;span class="pl-c1"&gt;1&lt;span class="pl-smi"&gt;%&lt;/span&gt;&lt;/span&gt;;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-kos"&gt;#&lt;/span&gt;&lt;span class="pl-c1"&gt;me&lt;/span&gt; .&lt;span class="pl-c1"&gt;lookingGood&lt;/span&gt;{
  &lt;span class="pl-c1"&gt;backface-visibility&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; hidden;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;teeth&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;gap&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; &lt;span class="pl-c1"&gt;10&lt;span class="pl-smi"&gt;px&lt;/span&gt;&lt;/span&gt;;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;addams&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;font-family&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; &lt;span class="pl-s"&gt;"do do do do clap clap"&lt;/span&gt;;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;bond&lt;/span&gt; {
    &lt;span class="pl-c1"&gt;color&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; &lt;span class="pl-pds"&gt;&lt;span class="pl-kos"&gt;#&lt;/span&gt;007&lt;/span&gt;;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;books&lt;/span&gt;.&lt;span class="pl-c1"&gt;last-opened&lt;/span&gt;{
  &lt;span class="pl-c1"&gt;display&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; none;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;jamba-juice&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;mix-blend-mode&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; normal;
  &lt;span class="pl-c1"&gt;color&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; green;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;oliver-queen&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;cursor&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; arrow;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;up&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;animation-direction&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; reverse;
  &lt;span class="pl-c1"&gt;float&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; unset;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;mosquito-net&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;display&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; grid;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;your-fat-darling&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt;&lt;span class="pl-c1"&gt;hover&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;transform&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; &lt;span class="pl-en"&gt;scaleX&lt;/span&gt;(&lt;span class="pl-c1"&gt;100&lt;/span&gt;);
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;belly&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;overflow&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt; visible;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-css notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;.&lt;span class="pl-c1"&gt;stammer&lt;/span&gt; {
  &lt;span class="pl-c1"&gt;animation-delay&lt;/span&gt;&lt;span class="pl-kos"&gt;:&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/cmcodes1/css-puns" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Repo stats
&lt;/h3&gt;

&lt;p&gt;It received 9 stars, 33 forks, and 49 PRs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Thank You! DEV &amp;amp; Digital Ocean for this initiative! ❤
&lt;/h3&gt;

</description>
      <category>hacktoberfest</category>
      <category>opensource</category>
      <category>git</category>
      <category>github</category>
    </item>
    <item>
      <title>I automated my weather bot with GitHub Action. 😎</title>
      <dc:creator>C M Pandey</dc:creator>
      <pubDate>Tue, 15 Sep 2020 06:04:15 +0000</pubDate>
      <link>https://dev.to/cmcodes/i-automated-my-weather-bot-with-github-action-187l</link>
      <guid>https://dev.to/cmcodes/i-automated-my-weather-bot-with-github-action-187l</guid>
      <description>&lt;h3&gt;
  
  
  My Workflow: &lt;a href="https://github.com/cmcodes1/weather-bot/actions?query=workflow%3A%22Weather+Bot%22" rel="noopener noreferrer"&gt;Weather Bot&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Submission Category: Wacky Wildcards
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Yaml File: &lt;a href="https://github.com/cmcodes1/weather-bot/blob/master/.github/workflows/action.yml" rel="noopener noreferrer"&gt;action.yml&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Link to Code:
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/cmcodes1" rel="noopener noreferrer"&gt;
        cmcodes1
      &lt;/a&gt; / &lt;a href="https://github.com/cmcodes1/weather-bot" rel="noopener noreferrer"&gt;
        weather-bot
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      🌞 Sends a message daily about the weather in your city.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt; &lt;a rel="noopener noreferrer" href="https://github.com/cmcodes1/weather-bot/blob/master/weather_bot_logo.jpg"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcmcodes1%2Fweather-bot%2Fraw%2Fmaster%2Fweather_bot_logo.jpg" width="30" height="30"&gt;&lt;/a&gt; Weather Bot &lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;
  An automated bot that notifies you every morning about the weather in your city on your telegram app. &lt;br&gt; &lt;br&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bccf7e76ca4714b8418c164bd0595ec1d299db48414eae24803a6e263057a24b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d416e64726f69642f5f694f532d627269676874677265656e2e737667"&gt;&lt;img src="https://camo.githubusercontent.com/bccf7e76ca4714b8418c164bd0595ec1d299db48414eae24803a6e263057a24b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d416e64726f69642f5f694f532d627269676874677265656e2e737667" alt="Platform-Android/_iOS"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9be1f7eacdc15950850f5b916352503e2fa1392dab729d55369fab2d855dd6dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d76312e30626574612d627269676874677265656e2e737667"&gt;&lt;img src="https://camo.githubusercontent.com/9be1f7eacdc15950850f5b916352503e2fa1392dab729d55369fab2d855dd6dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d76312e30626574612d627269676874677265656e2e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/43455ed2979e11afb449ed1034c6e243b4ca05138d63f14c72e4eb53bf700350/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5265706f5f53697a652d3233385f4b422d6f72616e67652e737667"&gt;&lt;img src="https://camo.githubusercontent.com/43455ed2979e11afb449ed1034c6e243b4ca05138d63f14c72e4eb53bf700350/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5265706f5f53697a652d3233385f4b422d6f72616e67652e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a48cfa670c5990482f4488497ed9b0c8c87a87e08960c2a6bf685bfda5b8d3e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456469746f722d56535f436f64652d3030373864372e737667"&gt;&lt;img src="https://camo.githubusercontent.com/a48cfa670c5990482f4488497ed9b0c8c87a87e08960c2a6bf685bfda5b8d3e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456469746f722d56535f436f64652d3030373864372e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7561cc0deb98ee79c91ae1c212f8b7c833935b8dc7cb79516c90cb6cc5e4a9bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d4a6176615363726970742d6630646234662e737667"&gt;&lt;img src="https://camo.githubusercontent.com/7561cc0deb98ee79c91ae1c212f8b7c833935b8dc7cb79516c90cb6cc5e4a9bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c616e67756167652d4a6176615363726970742d6630646234662e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/cb589c902d2bf99c279bcbee8a7a7694febecc5c29159279e4ebfc6bbff4c9b1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52756e74696d655f456e7669726f6e6d656e742d4e6f64652e6a732d3638413036332e737667"&gt;&lt;img src="https://camo.githubusercontent.com/cb589c902d2bf99c279bcbee8a7a7694febecc5c29159279e4ebfc6bbff4c9b1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52756e74696d655f456e7669726f6e6d656e742d4e6f64652e6a732d3638413036332e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/058b00dc3c2265090d927cab0a3c2b6f62904071152db6d803cddb71a1c00ff1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576561746865725f4150492d4f70656e576561746865724d61702d6539366534642e737667"&gt;&lt;img src="https://camo.githubusercontent.com/058b00dc3c2265090d927cab0a3c2b6f62904071152db6d803cddb71a1c00ff1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576561746865725f4150492d4f70656e576561746865724d61702d6539366534642e737667"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/21473296789314d642ac18b84befe5d2e98fbf59edae9129bbaae1a9475310ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861745f4150492d54656c656772616d2d3133396264302e737667"&gt;&lt;img src="https://camo.githubusercontent.com/21473296789314d642ac18b84befe5d2e98fbf59edae9129bbaae1a9475310ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861745f4150492d54656c656772616d2d3133396264302e737667"&gt;&lt;/a&gt; &lt;br&gt; &lt;br&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/cmcodes1/weather-bot/blob/master/preview.png"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fcmcodes1%2Fweather-bot%2Fraw%2Fmaster%2Fpreview.png" height="600px" width="300px"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/cmcodes1/weather-bot" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>actionshackathon</category>
      <category>github</category>
      <category>javascript</category>
      <category>showdev</category>
    </item>
    <item>
      <title>How to add Splash Screen in a React Native Android App? 🌟</title>
      <dc:creator>C M Pandey</dc:creator>
      <pubDate>Wed, 26 Aug 2020 13:12:50 +0000</pubDate>
      <link>https://dev.to/cmcodes/how-to-add-splash-screen-in-a-react-native-android-app-287l</link>
      <guid>https://dev.to/cmcodes/how-to-add-splash-screen-in-a-react-native-android-app-287l</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;The reason why you're here for this is probably that you couldn't find the correct, updated, and easiest solution to this till now! &lt;/p&gt;

&lt;p&gt;But now, worry no more! You've arrived at the right place. I will layout all the steps over here, which I did to implement it within minutes! Let's get this thing started! 🤘&lt;/p&gt;

&lt;h1&gt;
  
  
  Step #1
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;app/src/main/java/[packageName]&lt;/code&gt; and create a new file &lt;code&gt;SplashActivity.java&lt;/code&gt; and copy-paste the following code inside it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kn"&gt;package&lt;/span&gt; &lt;span class="nn"&gt;com.packagename&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Replace this with your package name&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;android.content.Intent&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;android.os.Bundle&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;androidx.appcompat.app.AppCompatActivity&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SplashActivity&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AppCompatActivity&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;@Override&lt;/span&gt;
    &lt;span class="kd"&gt;protected&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Bundle&lt;/span&gt; &lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;super&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;onCreate&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

        &lt;span class="nc"&gt;Intent&lt;/span&gt; &lt;span class="n"&gt;intent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Intent&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;MainActivity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;startActivity&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intent&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;finish&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #2
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;app/src/main/AndroidManifest.xml&lt;/code&gt; and modify it as follows to use SplashActivity:&lt;/p&gt;

&lt;p&gt;Add the following activity inside the &lt;code&gt;&amp;lt;application&amp;gt;&lt;/code&gt; tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;activity&lt;/span&gt;
    &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;".SplashActivity"&lt;/span&gt;
    &lt;span class="na"&gt;android:theme=&lt;/span&gt;&lt;span class="s"&gt;"@style/SplashTheme"&lt;/span&gt;
    &lt;span class="na"&gt;android:label=&lt;/span&gt;&lt;span class="s"&gt;"@string/app_name"&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;action&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.action.MAIN"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;category&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.category.LAUNCHER"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove the following intent from the &lt;code&gt;MainActivity&lt;/code&gt; tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;action&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.action.MAIN"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;category&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.category.LAUNCHER"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And add &lt;code&gt;android:exported="true"&lt;/code&gt; inside that activity.&lt;/p&gt;

&lt;p&gt;Now, your AndroidManifest.xml should be looking like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;manifest&lt;/span&gt; &lt;span class="na"&gt;xmlns:android=&lt;/span&gt;&lt;span class="s"&gt;"http://schemas.android.com/apk/res/android"&lt;/span&gt;
  &lt;span class="na"&gt;package=&lt;/span&gt;&lt;span class="s"&gt;"com.packagename"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;uses-permission&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.permission.INTERNET"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;application&lt;/span&gt;
      &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;".MainApplication"&lt;/span&gt;
      &lt;span class="na"&gt;android:label=&lt;/span&gt;&lt;span class="s"&gt;"@string/app_name"&lt;/span&gt;
      &lt;span class="na"&gt;android:icon=&lt;/span&gt;&lt;span class="s"&gt;"@mipmap/ic_launcher"&lt;/span&gt;
      &lt;span class="na"&gt;android:roundIcon=&lt;/span&gt;&lt;span class="s"&gt;"@mipmap/ic_launcher"&lt;/span&gt;
      &lt;span class="na"&gt;android:allowBackup=&lt;/span&gt;&lt;span class="s"&gt;"false"&lt;/span&gt;
      &lt;span class="na"&gt;android:theme=&lt;/span&gt;&lt;span class="s"&gt;"@style/AppTheme"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;activity&lt;/span&gt;
        &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;".SplashActivity"&lt;/span&gt;
        &lt;span class="na"&gt;android:theme=&lt;/span&gt;&lt;span class="s"&gt;"@style/SplashTheme"&lt;/span&gt;
        &lt;span class="na"&gt;android:label=&lt;/span&gt;&lt;span class="s"&gt;"@string/app_name"&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;intent-filter&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;action&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.action.MAIN"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;category&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"android.intent.category.LAUNCHER"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/intent-filter&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;activity&lt;/span&gt;
        &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;".MainActivity"&lt;/span&gt;
        &lt;span class="na"&gt;android:label=&lt;/span&gt;&lt;span class="s"&gt;"@string/app_name"&lt;/span&gt;
        &lt;span class="na"&gt;android:configChanges=&lt;/span&gt;&lt;span class="s"&gt;"keyboard|keyboardHidden|orientation|screenSize|uiMode"&lt;/span&gt;
        &lt;span class="na"&gt;android:launchMode=&lt;/span&gt;&lt;span class="s"&gt;"singleTask"&lt;/span&gt;
        &lt;span class="na"&gt;android:windowSoftInputMode=&lt;/span&gt;&lt;span class="s"&gt;"adjustResize"&lt;/span&gt;
        &lt;span class="na"&gt;android:exported=&lt;/span&gt;&lt;span class="s"&gt;"true"&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/activity&amp;gt;&lt;/span&gt;

      &lt;span class="nt"&gt;&amp;lt;activity&lt;/span&gt; &lt;span class="na"&gt;android:name=&lt;/span&gt;&lt;span class="s"&gt;"com.facebook.react.devsupport.DevSettingsActivity"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/application&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/manifest&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #3
&lt;/h1&gt;

&lt;p&gt;Now, we will declare a &lt;code&gt;SplashTheme&lt;/code&gt; for &lt;code&gt;SplashActivity&lt;/code&gt;. Go to &lt;code&gt;app/src/main/res/values/styles.xml&lt;/code&gt; and add the following style inside &lt;code&gt;&amp;lt;resources&amp;gt;&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;style&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"SplashTheme"&lt;/span&gt; &lt;span class="na"&gt;parent=&lt;/span&gt;&lt;span class="s"&gt;"Theme.AppCompat.Light.NoActionBar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;item&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"android:background"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;@drawable/background_splash&lt;span class="nt"&gt;&amp;lt;/item&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;item&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"android:statusBarColor"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;@color/background&lt;span class="nt"&gt;&amp;lt;/item&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #4
&lt;/h1&gt;

&lt;p&gt;Go to android\app\src\main\res\values and create a file &lt;code&gt;colors.xml&lt;/code&gt; if not present already.&lt;br&gt;
We used a background color constant above, so we must add it to our colors.xml file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;resources&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- Insert your background color for the splash screen --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;color&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"background"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;#fff&lt;span class="nt"&gt;&amp;lt;/color&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/resources&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #5
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;android/app/src/main/res/drawable&lt;/code&gt; (create drawable folder if it doesn't exist already) and place your splash screen image (its's name should be splash_screen.png) here and also create a file &lt;code&gt;background_splash.xml&lt;/code&gt; with the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;layer-list&lt;/span&gt; &lt;span class="na"&gt;xmlns:android=&lt;/span&gt;&lt;span class="s"&gt;"http://schemas.android.com/apk/res/android"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;item&lt;/span&gt; &lt;span class="na"&gt;android:drawable=&lt;/span&gt;&lt;span class="s"&gt;"@color/background"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;item&lt;/span&gt;
        &lt;span class="na"&gt;android:drawable=&lt;/span&gt;&lt;span class="s"&gt;"@drawable/splash_screen"&lt;/span&gt;
        &lt;span class="na"&gt;android:height=&lt;/span&gt;&lt;span class="s"&gt;"300dp"&lt;/span&gt;
        &lt;span class="na"&gt;android:width=&lt;/span&gt;&lt;span class="s"&gt;"300dp"&lt;/span&gt;
        &lt;span class="na"&gt;android:gravity=&lt;/span&gt;&lt;span class="s"&gt;"center"&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/layer-list&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the size of your splash screen is equal to the size of the device screen, then remove &lt;code&gt;android:height&lt;/code&gt; and &lt;code&gt;android:width&lt;/code&gt; from the above-mentioned &lt;code&gt;&amp;lt;item&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;

&lt;h1&gt;
  
  
  Step #6
&lt;/h1&gt;

&lt;p&gt;Install &lt;code&gt;react-native-splash-screen&lt;/code&gt; module in your project and then import &lt;code&gt;SplashScreen&lt;/code&gt; from it in your &lt;code&gt;App.js&lt;/code&gt; file.&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="nx"&gt;SplashScreen&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;react-native-splash-screen&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We need to display the splash screen only till the first component is mounted, and to do that make a &lt;code&gt;useEffect&lt;/code&gt; hook inside your App component body (before return) as follows:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Don't forget to import &lt;code&gt;useEffect&lt;/code&gt; from &lt;code&gt;'react'&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;useEffect&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="nx"&gt;SplashScreen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hide&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;h1&gt;
  
  
  Step #7
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;app/src/main/java/[packageName]/MainActivity.java&lt;/code&gt; and import the following modules above other imports.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;org.devio.rn.splashscreen.SplashScreen&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;android.os.Bundle&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this method to the top of &lt;code&gt;MainActivity&lt;/code&gt; class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="nd"&gt;@Override&lt;/span&gt;
&lt;span class="kd"&gt;protected&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;onCreate&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Bundle&lt;/span&gt; &lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;SplashScreen&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;show&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="no"&gt;R&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;SplashStatusBarTheme&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;super&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;onCreate&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;savedInstanceState&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #8
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;android/app/src/main/res/values/styles.xml&lt;/code&gt; to add &lt;code&gt;SplashStatusBarTheme&lt;/code&gt; just like we did in Step #3.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;style&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"SplashStatusBarTheme"&lt;/span&gt; &lt;span class="na"&gt;parent=&lt;/span&gt;&lt;span class="s"&gt;"SplashScreen_SplashTheme"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;item&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"android:statusBarColor"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;@color/background&lt;span class="nt"&gt;&amp;lt;/item&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you don't do this, then StatusBar will change color to black when the JS code of the app will load.&lt;/p&gt;

&lt;h1&gt;
  
  
  Step #9
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;android/app/src/main/res/&lt;/code&gt; and create a new folder &lt;code&gt;layout&lt;/code&gt; (if it doesn't already exist). Inside that folder, create a file &lt;code&gt;launch_screen.xml&lt;/code&gt; (this file is needed by &lt;code&gt;react-native-splash-screen library&lt;/code&gt;). Inside that file, create a layout using the previously created background as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;LinearLayout&lt;/span&gt; &lt;span class="na"&gt;xmlns:android=&lt;/span&gt;&lt;span class="s"&gt;"http://schemas.android.com/apk/res/android"&lt;/span&gt;
    &lt;span class="na"&gt;android:orientation=&lt;/span&gt;&lt;span class="s"&gt;"vertical"&lt;/span&gt;
    &lt;span class="na"&gt;android:layout_width=&lt;/span&gt;&lt;span class="s"&gt;"match_parent"&lt;/span&gt;
    &lt;span class="na"&gt;android:layout_height=&lt;/span&gt;&lt;span class="s"&gt;"match_parent"&lt;/span&gt;
    &lt;span class="na"&gt;android:background=&lt;/span&gt;&lt;span class="s"&gt;"@drawable/background_splash"&lt;/span&gt; 
&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Step #10
&lt;/h1&gt;

&lt;p&gt;Go to &lt;code&gt;android/app/src/main/res/values/colors.xml&lt;/code&gt; and add the following  tag just like we did in step #4, otherwise, the app will crash. Don't change the color value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;color&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"primary_dark"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;#000&lt;span class="nt"&gt;&amp;lt;/color&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that's it! We did it! Your splash screen has been added to your app! Go and check it now! Thank me later! 😉&lt;/p&gt;

&lt;p&gt;Hope you learned something new from this! 😃&lt;/p&gt;

&lt;p&gt;PS: If you have any confusion or encounter any error while following the above-mentioned steps, then feel free to comment below, I will be happy to help you resolve it. 😊&lt;/p&gt;

&lt;p&gt;Have a nice day! 🤗&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>android</category>
      <category>java</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How my portfolio got a SEO score of 100 ? 😲</title>
      <dc:creator>C M Pandey</dc:creator>
      <pubDate>Sat, 04 Jul 2020 20:26:48 +0000</pubDate>
      <link>https://dev.to/cmcodes/how-my-portfolio-got-a-seo-score-of-100-456c</link>
      <guid>https://dev.to/cmcodes/how-my-portfolio-got-a-seo-score-of-100-456c</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;The reason why you're here is probably because you wanna know what I did to achieve a &lt;strong&gt;SEO score of 100&lt;/strong&gt; on lighthouse.&lt;/p&gt;

&lt;p&gt;Link to my portfolio website is at the bottom.&lt;/p&gt;

&lt;p&gt;I will lay out all my tips and tricks over here, which I implemented to achieve this! Let's get this thing started! 🤘&lt;/p&gt;

&lt;h1&gt;
  
  
  Tip #1
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Don't use plugins
&lt;/h1&gt;

&lt;p&gt;Most of the search engines don't index browser plugins relying content (Java/ Flash). Plugin-based content doesn't show up in search results, so it's better to avoid it!&lt;/p&gt;

&lt;p&gt;Plus, plugins aren't supported by most of the mobile devices, which creates a not-so-good experience for a mobile user.&lt;/p&gt;

&lt;p&gt;Here's an article which will help you to convert a &lt;a href="https://developer.mozilla.org/en-US/docs/Plugins/Flash_to_HTML5/Video" rel="noopener noreferrer"&gt;Flash video to HTML5 video&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Tip #2
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Use &lt;code&gt;lang&lt;/code&gt; attribute
&lt;/h1&gt;

&lt;p&gt;Using &lt;code&gt;lang&lt;/code&gt; attribute tells the search engine what version of a page they should list in search results for a given language or region. You should always include the lang attribute inside the  tag, to declare the language of the webpage.&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;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #3
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Use &lt;code&gt;alt&lt;/code&gt; attribute for images
&lt;/h1&gt;

&lt;p&gt;While having an alt attribute for every image might not seem to be an important thing to do, but let me tell you, IT IS.&lt;/p&gt;

&lt;p&gt;If due to some reason, an image doesn't loads, the alt text will tell the user what the image was about.&lt;/p&gt;

&lt;p&gt;Make sure that it is short and descriptive.&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="s"&gt;"image.png"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"logo"&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;If the image is used just for decoration and does not provide any useful content, then give it an empty alt="" attribute and it will be removed from the accessibility tree.&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="s"&gt;"image.png"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #4
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Don't block it from indexing
&lt;/h1&gt;

&lt;p&gt;Search engines can only show those pages in their search results which haven't been explicitly blocked for indexing. Some HTTP headers and meta tags can be used to tell the crawlers that this page shouldn't be indexed.&lt;/p&gt;

&lt;p&gt;Make sure that your code doesn't contain any of the following code lines:&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;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"robots"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"noindex"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
X-Robots-Tag: noindex
&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"AdsBot-Google"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"noindex"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #5
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Write descriptive text for your links
&lt;/h1&gt;

&lt;p&gt;Link text is a word or phrase in a hyperlink which can be clicked. When link text clearly conveys a hyperlink's target, both users and search engines can understand the content and its realtion to the linked page.&lt;/p&gt;

&lt;p&gt;Don't&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;p&amp;gt;&lt;/span&gt; To view my projects &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"projects.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; click here! &lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Do&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;p&amp;gt;&lt;/span&gt; View &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"projects.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; my projects &lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #6
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Include description in your &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; tag
&lt;/h1&gt;

&lt;p&gt;this is the most important thing to do for SEO. The name and content attribute tells the summary of the content of a page that is included in the search results. A well-written, unique meta description makes your page appear more relevant and can increase your search traffic.&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;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"keyword"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"cmcodes, portfolio, react, react native, javascript, developer"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"description"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"Here's the portfolio of cmcodes (react &amp;amp; react-native javascript developer)."&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"author"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"cmcodes"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #7
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Include the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag
&lt;/h1&gt;

&lt;p&gt;This is the first thing which a user reads when he searches for a specific term. Make sure that it is relevant and eye-catchy!&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;title&amp;gt;&lt;/span&gt;cmcodes - React Developer&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #8
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Include &lt;code&gt;viewport&lt;/code&gt; in &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; tag
&lt;/h1&gt;

&lt;p&gt;Many search engines rank pages on the basis of mobile-responsiveness. Without a viewport meta tag, mobile devices render the webpage with the width of a desktop and then scale the pages down, which makes them difficult to read.&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;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1, shrink-to-fit=yes"&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;Thank you for reading so far! 😄&lt;/p&gt;

&lt;p&gt;Hope you learned something new from this! 😃&lt;/p&gt;

&lt;p&gt;Here's the link to my portfolio website 👉 &lt;a href="https://cmcodes1.github.io/" rel="noopener noreferrer"&gt;cmcodes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's the link to my portfolio source code 👇&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/cmcodes1" rel="noopener noreferrer"&gt;
        cmcodes1
      &lt;/a&gt; / &lt;a href="https://github.com/cmcodes1/cmcodes1.github.io" rel="noopener noreferrer"&gt;
        cmcodes1.github.io
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      😊 Here's my portfolio where you can see all my projects, blogs, and achievements.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Check it out and do let me know your views! Eager to hear your opinion. 😁&lt;/p&gt;

&lt;p&gt;Feel free to share your portfolio link in the comments below. I would be very happy to have a look at them. 😊&lt;/p&gt;

&lt;p&gt;Happy Coding! 👨‍💻&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>showdev</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>My website now loads in less than 1 sec! Here's how I did it! ⚡</title>
      <dc:creator>C M Pandey</dc:creator>
      <pubDate>Sat, 04 Jul 2020 18:43:30 +0000</pubDate>
      <link>https://dev.to/cmcodes/my-website-now-loads-in-less-than-2-sec-here-s-how-i-did-it-hoj</link>
      <guid>https://dev.to/cmcodes/my-website-now-loads-in-less-than-2-sec-here-s-how-i-did-it-hoj</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;The reason why you're here is probably because you wanna know what I did to load my portfolio website in just &lt;strong&gt;0.8 seconds&lt;/strong&gt; and achieved a &lt;strong&gt;performance score of 97&lt;/strong&gt; on lighthouse.&lt;/p&gt;

&lt;p&gt;Link to my portfolio and its source code is at the bottom.&lt;/p&gt;

&lt;p&gt;I will lay out all my tips and tricks over here, which I implemented to achieve this! Let's get this thing started! 🤘&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;NOTE: According to Lighthouse, "Values are estimated and may vary. The performance score is &lt;a href="https://github.com/GoogleChrome/lighthouse/blob/d2ec9ffbb21de9ad1a0f86ed24575eda32c796f0/docs/scoring.md#how-are-the-scores-weighted" rel="noopener noreferrer"&gt;based only on these metrics&lt;/a&gt;." This report was generated on 2nd of August, 06:29:22 PM IST. These scores might reflect a bit different on your machine due to internet connection speed or multiple extensions running in the background or I might add some features later. Also, I have "clearly" mentioned above that these scores were generated by Google Lighthouse. Don't expect the same score on any other tool. So, please don't try to troll on this basis and save your energy. Peace! ✌&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Tip #1
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Don't use a large DOM tree.
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;My portfolio contains 487 DOM elements with a maximum DOM depth of 13 and a maximum of 20 child elements only!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If your DOM tree is very large, then it will slow down the performance of your webpage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Memory performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using general query selectors such as document.querySelectorAll('li'), stores references to a multiple nodes which can consume the memory capabilities of the device.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Network efficiency and load performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A big DOM tree has many nodes (not visible in first load), which slows down load time and increases data costs for your users.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Runtime performance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whenever a user/ script interacts with your webpage, the browser needs to recompute the position and styling of nodes. having complicated style rules can slow down the rendering.&lt;/p&gt;

&lt;h1&gt;
  
  
  Tip #2
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Don't use enormous network payloads.
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;My portfolio has a total network payloads size of just 764 KB.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The total payload size of your website should be below 1600 KB.&lt;br&gt;
To keep it low, you can do the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Defer requests until they're needed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minify and compress network payloads.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set the compression level of JPEG images to 85.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Always remember, large network payloads cost large amounts of money.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  Tip #3
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Don't use GIFs.
&lt;/h1&gt;

&lt;p&gt;Rather use PNG/ WebP format for dispalying static images. But if you want to display animated content then instead of using large GIFs (inefficient &amp;amp; pixelated) consider using MPEG4/ WebM video format.&lt;/p&gt;

&lt;p&gt;Now, you will say what if I want their features like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatic play.&lt;/li&gt;
&lt;li&gt;Continuous loop.&lt;/li&gt;
&lt;li&gt;No audio.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Well let me rescue you from this, the HTML5 &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; element allows recreating these behaviors.&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;video&lt;/span&gt; &lt;span class="na"&gt;autoplay&lt;/span&gt; &lt;span class="na"&gt;loop&lt;/span&gt; &lt;span class="na"&gt;muted&lt;/span&gt; &lt;span class="na"&gt;playsinline&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"my-animation.webm"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"video/webm"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"my-animation.mp4"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"video/mp4"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/video&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Tip #4
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Preload key requests
&lt;/h1&gt;

&lt;p&gt;Suppose your page is loading a JS file which fetched another JS and a CSS file, the page won't appear completely until both of those resources are downloaded, parsed, and executed.&lt;/p&gt;

&lt;p&gt;If the browser would be able to start the requests earlier, then there would be much time saving. Luckily, you can do so by declaring preload links.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;link rel="preload" href="style.css" as="style"&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Tip #5
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Don't try multiple page redirects.
&lt;/h1&gt;

&lt;p&gt;Redirecting slows down the load speed of your webpage. When a browser requests a resource that has been redirected, the server returns an HTTP response. The browser must then make another HTTP request at the new location to retrieve that resource. This additional trip across the network can delay the loading of the resource by hundreds of milliseconds.&lt;/p&gt;

&lt;p&gt;If you want to divert your mobile users to the mobile version of your webpage, consider redesigning your website to make it responsive.&lt;/p&gt;
&lt;h1&gt;
  
  
  Tip #6
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Preconnect to required origins.
&lt;/h1&gt;

&lt;p&gt;Using the keyword &lt;code&gt;preconnect&lt;/code&gt; gives a signal to the bowser to establish early connections to important third-party origins.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;link rel="preconnect" href="https://www.google.com"&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Doing so establishes a connection to the origin, and that informs the bowser that you want the process to start ASAP.&lt;/p&gt;
&lt;h1&gt;
  
  
  Tip #7
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Encode your images efficiently.
&lt;/h1&gt;

&lt;p&gt;A compression level of 85 is considered good enough for JPEG images. You can optimize your images in many ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoiding GIFs.&lt;/li&gt;
&lt;li&gt;Using image CDNs.&lt;/li&gt;
&lt;li&gt;Compressing images.&lt;/li&gt;
&lt;li&gt;Lazy loading images.&lt;/li&gt;
&lt;li&gt;Using WebP image format.&lt;/li&gt;
&lt;li&gt;Serving responsive images.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
  
  
  Tip #8
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Minify your JavaScript files.
&lt;/h1&gt;

&lt;p&gt;Minification is the process of removing whitespace and any code that is not necessary to create a smaller but perfectly valid code file.&lt;/p&gt;

&lt;p&gt;By minifying your JavaScript files, you can reduce the payload size and parsing time for the script.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I use &lt;a href="https://javascript-minifier.com/" rel="noopener noreferrer"&gt;JavaScript Minifier&lt;/a&gt; for the same.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  Tip #9
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Minify your CSS files.
&lt;/h1&gt;

&lt;p&gt;CSS files occupy more whitespace than any other file. By minifying them, we can save some bytes for sure!&lt;br&gt;
Do you know that you can even change a color value to its shorthand equivalent, like #000000 can be reduced to #000, and will work just fine!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I use &lt;a href="https://cssminifier.com/" rel="noopener noreferrer"&gt;CSS Minifier&lt;/a&gt; for the same.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;
  
  
  Tip #10
&lt;/h1&gt;
&lt;h1&gt;
  
  
  Resize your images.
&lt;/h1&gt;

&lt;p&gt;I can bet this is the most given advice when it comes to webperf because the size of images is far far far greater than any text script file, so an over-sized image might be an overkill.&lt;/p&gt;

&lt;p&gt;You should never upload images that are larger than what's rendered on the screen, that will do no good.&lt;/p&gt;

&lt;p&gt;You can either just simply resize your image dimensions or use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Responsive images.&lt;/li&gt;
&lt;li&gt;Image CDNs.&lt;/li&gt;
&lt;li&gt;SVG instead of icons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thank you for reading so far! 😄&lt;br&gt;
Hope you learned something new from this! 😃&lt;/p&gt;

&lt;p&gt;Here's the link to my portfolio website 👉 &lt;a href="https://cmcodes1.github.io" rel="noopener noreferrer"&gt;cmcodes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's the link to my portfolio source code 👇&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/cmcodes1" rel="noopener noreferrer"&gt;
        cmcodes1
      &lt;/a&gt; / &lt;a href="https://github.com/cmcodes1/cmcodes1.github.io" rel="noopener noreferrer"&gt;
        cmcodes1.github.io
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      😊 Here's my portfolio where you can see all my projects, blogs, and achievements.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Check it out and do let me know your views! Eager to hear your opinion. 😁&lt;/p&gt;

&lt;p&gt;Feel free to share your portfolio link in the comments below. I would be very happy to have a look at them. 😊&lt;/p&gt;

&lt;p&gt;Happy Coding! 👨‍💻&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webperf</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
