Monday, 13 June 2016

5 Ways To Reduce Blogger Page Load Time

Ways To Reduce Blogger Page Load Time
Time is now google ranking factorThe adage “patience is a virtue” doesn’t apply online. Even a one-second delay can drastically reduce pageviews, customer satisfaction and your lovely revenue. Actually, it’s not a secret at all, Page load time have long played a role in search engine rankings. Since 2010, Google has been accounting for a site speed in its algorithm for ranking. So what’s the biggest factor contributing to your page speed? - It takes browsers time to download the resource code that makes up your page. It has to download your HTML, your stylesheets, your scripts and your images. Each new feature weighs down your blogger blog just a little more.

Did you know that if an e-commerce site is making $100,000 per day, a delay of 1 second in page load time can cost it an annual loss of $2.5 million. Research also shows that 47% of the readers expect that the websites should load within 2 seconds while a delay of more than 3 seconds can make 40% of your readers to abandon your site and I know you don't want to lose your users - that's why you're here :)

Of course, a quick search on how to improve page load time turns up so many techniques. Minify CSS? JavaScript at bottom? but no specific instructions for blogger blogs BUT don't worry, I have prepared a list of ways for blogspot users, implementing these changes dramatically improve your page load time, even if you aren’t a total technical programmer. In this article, we’ll use both basic and advanced techniques you can use to optimize your blogger page load time.


Ways To Improve Blogger Page Load Time


#1 - Optimize your images:

Others ways may help you to reduce the page size in bytes, but image size can dramatically increase or decrease your page size in kilobytes (KB) and we have already discussed that More Page size = More page load time. Therefore Image size was the most important factor in page load time. Many times we upload images to increase the visual appeal of the posts, therefore its become important to optimize the images. As Blogger by default doesn't optimize the images we upload, so we have to optimize the images before uploading.

  • Use online image compressing tool like TingpngImageOptimizer  to optimize images without compromising with image quality.
  • Crop your images to the correct size. For Example: If your main page width is 600px, resize the image to that width. Don’t just upload a 2000px-wide image and set the width parameter (width=”600”). This slows your page load time and creates a bad user experience.

Recommended: Use JPEG or PNG Image format, though all browsers fully support them.


#2 - Reduce numbers of posts on your homepage:

Homepage was the most important page in the blog, it's like first impression and we know "First impression matters". Homepage itself speak all about your blog, most of the users use your homepage for navigation purpose. According to a study, 90% of the visitor consider homepage as important factor for blog quality. If your homepage is visually appealing but slow in loading, 55% of the user may abondon your blog. Even if your writing quality content. Therefore by reducing the numbers of posts per page, we can dramatically improve homepage load time of our blogspot blog.

- Goto Settings > Posts, comments and sharing > Change "Show at most" value.
- Click Save.

Recommended: show at most 6-8 posts on homepage.

Read: Stylish Search Boxes with limited number of posts per page.


#3 - Reduce numbers of Widgets

Adding widgets was a cool feature in blogger and blogger lets you add as many widgets as you want. But remember, adding too many widgets can increase HTTP requests which effects your page load time very badly. Therefore always use limited numbers of widgets on your blog.

  • Remove unwanted and non-essential widgets.
  • Use at max 5 widgets on a page.
  • Create page instead of widget (but should be relevant). For Example: You can create contact page instead of adding contact widget.
  • Show or Hide widgets on Specific page.


#4 - Minify JavaScripts and CSS

Compressing (Minify) your code is also useful for interpreted languages that run over the Internet, such as CSS and JavaScript. It reduces the the size of the file (code) without harming your code. SORRY to say again that "More page size = More page load time".

Before we move further, its important to learn more about the benefits of External source code. If the code is External, it can easier be cached by browsers. (Cached means: Your file will be downloaded once and can be executed many time, through out the blog without downloading again and again). Of course this will optimize your page load time :)

  • Convert inline JavaScript to External JavaScript, then minify them and place at the end (same as #5).
  • Convert inline CSS to External file, then compress the code.

Read: How to Convert Inline JavaScript to External file in blogger

To minify CSS, try CSScompressor. To minify Javascript, try Javascript-Compressor.

How to Minify CSS and JavaScript:

1. Copy and paste your CSS or JavaScript in blank, input field.
2. Click Compress.
3. Again copy and paste your output code in your file, and save the file.

Note: Don't move CSS file at the end of body. (Optional) You can place CSS file above </head> tag.



#5 - Move JavaScripts at the Bottom

Pages always load from top to bottom and the code placed first in the HTML document, run first and so on. JavaScripts take few seconds to get fully executed and thereby increases the page load time, Therefore JavaScripts should be placed at the end of body so that important code can load first to display page faster.

Note: Don't move default, blogger JavaScripts. Important! Backup your templates before applying these options (If anything went wrong, you can revert it easily).

These options are only for custom features. For example: Custom Search Box, Custom Subscription box, Custom Lightbox for blogger etc.


- Move the Inline JavaScript code above </body> tag.

  For Example:
<script> Your code </script>
              or
<script type="text/javascript"> Your code </script>


- Also Place External JavaScript at the end.

  For Example:
<script src="http://javascript.js"/>
              or
<script src="http://javascript.js"></script>
              or
<script type="text/javascript" src="http://javascript.js"/>
              or
<script type="text/javascript" src="http://javascript.js"></script>

Steps: To move JavaScript at Bottom

1. Copy your JavaScript code with <script> ... </script> tag.
2. Login to blogger, then navigate to Dashboard > Template > Edit HTML.
3. Use ctrl+f and find code </body>.
4. Just above it place your JavaScript.
5. Click Save.



Finally, its over

Now, its time to check out the magic. Don't forget to  share your experience below. Stay Updated, Browse Howbloggerz ! :)
Read more ...

How To Convert Inline CSS or JavaScript To External File

CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages all at once. JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How To Convert Inline CSS or JavaScript To External File
What is inline CSS and JavaScript? All the CSS and JavaScript that are embedded in HTML document are know as inline CSS or JavaScript.

What is External CSS and JavaScript? All the CSS and JavaScript that are hosted externally as External file are known as External CSS or JavaScript.

Benefits of External CSS and JavaScript.

- Optimize Page load time.
- Makes HTML document lighter.
- Increases browser caching.
- Makes your document clean and tidy.
- Easy to manage.

How to Host Blogger CSS and JavaScript on google drive

There are so many file hosting services, but google drive is free and easy to manage. You can also use google drive for windows to quickly manage your files.

Step 1. Open Notepad > Paste your code (for CSS remove <style> and </style>, for JavaScript remove <script> and </script>.

Step 2. In the Notepad menu, select 'File' > 'Save as' and type the file name with extension .css for CSS and .js for JavaScript.


Preparing CSS and Javascript file to host online

Step 3. In the same window, choose "All files" in the "Save as type" option and set the Character Encoding to UTF-8.

Step 4. Open Google drive and login with your Gmail account. After you logged in, click on the 'NEW' button and add a new separate folder to upload your JavaScript and CSS files.


How to add folder in Google drive



Step 5. Open the newly created folder, and click on the NEW > File Upload. then choose the files that you need to upload.


How to upload file in google drive


Step 6. After the files have been successfully uploaded, right click on the file names and select 'Share'. Again in the pop-up select advance.


How to share file on google drive


 Step 7. Change file access from 'private' to 'Anyone'. Then copy your file link and click done.


Change google file share access to public


Step 8. Before you can use the links, you must replace 'https://drive.google.com/file/d' to 'https://googledrive.com/host' and remove '/edit?usp=sharing' in the link.

For example:

My file link looks like this:

https://drive.google.com/file/d/0B6pDGRGeYi9nampKY0M4dXVOVWc/view?usp=sharing

After replacing 'https://drive.google.com/file/d' to 'https://googledrive.com/host' and removing '/edit?usp=sharing' :

https://googledrive.com/host/0B6pDGRGeYi9nampKY0M4dXVOVWc

Step 9. Now add your link to the following code:

For CSS:

<link rel="stylesheet" type="text/css" href="https://googledrive.com/host/0B6pDGRGeYi9nampKY0M4dXVOVWc" />

Replace https://googledrive.com/host/0B6pDGRGeYi9nampKY0M4dXVOVWc with your CSS file URL.


For JavaScript:

<script src='https://googledrive.com/host/0B6pDGRGeYi9nampKY0M4dXVOVWd' type='text/javascript'/>

Replace https://googledrive.com/host/0B6pDGRGeYi9nampKY0M4dXVOVWd with your JavaScript file URL.

Now you can use these code on your HTML document to add external CSS and JavaScript file.

Step 10. Login to blogger account, then navigate to Template > Edit HTML and place your Code:

For CSS: Place code below <head>.
For JavaScript: Place code above </body>.

Recommended: Use ctrl+f to find above codes.

Read: How to Reduce Blogger Page load time.

That's all!

For any type of issue or suggestion, please comment below. Stay Updated! Browse Howbloggerz :)
Read more ...