Search Suggest

Reduce Initial Server Response time

1 min read

Reduce Initial Server Response time




Here you will learn how to Reduce Initial Server Response time in your website to get better user feedback regarding site performance.



Go To Blogger Dashboard and click on Edit HTML then Follow below instruction and paste the codes accordingly:



Copy and paste below code above </body> tag_




<html>

<?php echo '....'; ?>  

<?php echo ' '; ob_start(); ?>

        <?php ob_start(); ?>

        <?php 

            sleep(2); // Simulate slow processing

            echo "Body"

        ?>

   

</html>


Also copy and paste below code below <head> tag_

<script>

{

  "id": "server-response-time",

  "title": "Initial server response time was short",

  "description": "Keep the server response time for the main document short because all other requests depend on it. [Learn more](https://web.dev/time-to-first-byte/).",

  "score": 1,

  "scoreDisplayMode": "binary",

  "displayValue": "Root document took 140 ms",

  "details": {

    "type": "opportunity",

    "items": [

      {

        "url": "https://whistlr.info/",

        "responseTime": 142.474

      }

    ],

    "headings": [

      {

        "label": "URL",

        "key": "url",

        "valueType": "url"

      },

      {

        "key": "responseTime",

        "label": "Time Spent",

        "valueType": "timespanMs"

      }

    ],

    "overallSavingsMs": 42.47399999999999

  },

  "numericValue": 142.474

}

</script>





Now click on save and your ae all done.



Item Reviewed: Reduce Initial Server Response time Description: Rating: 4.7 Reviewed By:

Post a Comment

Blog Archive / Click to See All Posts

Everyone Needs Everything!