Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,424 members, 7,819,539 topics. Date: Monday, 06 May 2024 at 05:45 PM

Tricks To Make Your Website Faster - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Tricks To Make Your Website Faster (526 Views)

14 Simple Tricks To Speed Up Your Website / Tips And Tricks To Help You Run A Professional Joomla Website / Top 2 Best Tricks To Download Any Youtube Video From The URL (2) (3) (4)

(1) (Reply)

Tricks To Make Your Website Faster by abula112(m): 11:05am On Oct 01, 2016
1. Optimize Your Database

Most sites use databases to store information. If you have an e-commerce store, blog, news site, or any type of dynamic functionality like internal search, then you are using a database. However, your database can impact your page speed.

Adding an index is one of the best ways to optimize your database for page speed improvements. Doing so will help your database find information faster. Instead of having to scan millions of records, your database can rely on an index to narrow down the data to a few hundred. This helps the data get returned to the page much faster.

For example, recently I was working on a site where the most popular pages were loading very slowly, taking between two to ten seconds each.

The problem was buried in the database — the table that stored the requested data didn’t have an index on it. After adding the index, the average page load time was reduced from the 2- to 10-second range to less than 1 second.

As you can see in the chart below, some load times were north of ten seconds — and, as I mentioned earlier, nobody is going to wait that long for a page to load. (Note that the page load times are measured in seconds — the lower the number, the faster the page loaded.)



2. Ditch Your Tracking Codes, Video Embeds & Share Buttons

Yep. You heard me right. You don’t need five different analytics programs. While tracking codes are vital for analyzing user behavior onsite, marketers should review each analytics program and determine which is necessary.

Remember, simplicity is key. Every time you add another tracking code to your page, it slows it down. For tracking codes you do include, be sure to put it at the bottom of the page. That way, the page can be displayed to the user even if the code hasn’t finished loading yet.

Also, limit the use of video embeds. Why? Video is a great way to build consumer engagement and create a better user experience; however, most video embeds (including YouTube) use iFrames to display the video.

iFrames place a real drag on page load times because they are essentially causing you to load a whole separate page within your main page.



The same goes for share buttons. Marketers should use share buttons to increase referral traffic and reach new consumers. However, most share buttons are javascript-based, and all the javascript does is generate an iFrame on the page.

Try limiting the number of share buttons on each page. This will help prioritize the marketing benefits rather than the negative impact to page speed.

Balance Page Speed With Rankings & Traffic

In each of the above cases, the brand manager needs to balance the risk of a slower page speed with the benefits of each initiative. The best way to make this decision is by testing the change and analyzing its effect on rankings and traffic against your KPIs.

For instance, many sites would prefer an increase in traffic due to share buttons and are comfortable with a decrease in rankings.

Bottom line: Multiple videos or share buttons on a page can dramatically slow down load time. It’s okay to use tracking codes, embed videos, and include share buttons, but be selective.

3. Use Caching When Available

When you visit a web page for the first time, your browser needs to request all the images, text, scripts, etc. from the website’s server. They are stored in your browser’s cache so that when you visit other pages on the site, you only need to download the parts of it that are unique. For example, the site’s logo will likely be the same on every page, so that is an image the browser can load from its cache quickly.

Up until the last year or two, browser caching capabilities were pretty limited. But once HTML5 came on the scene, it received some major updates.

For example, Local Storage allows you to store megabits of data using the browser instead of requiring it to be stored in your server’s database.

Alternatively, Application Cache lets you write fully-functional web applications that can run offline. The benefits of these two caching mechanisms are:

Speed: They allow you to access resources from your local computer so you don’t have to wait for the server to provide them.

Cost Savings: As you increase the use of local storage, your server use will decrease. That means you’ll be paying for less bandwidth and server usage.

Offline Browsing: Your users won’t have to worry about your app not working when their Wi-Fi goes down; their phone enters a dead zone, or you need to take the site down briefly for maintenance.

4. Content Delivery Networks

Imagine that your website’s server is located physically in Texas. Your site should load quickly for residents there because its data need only travel a short distance from the server to their computer.

Now, imagine a user in Paris wants to visit your site. The web page data must travel from Texas to France, stopping at multiple routers along the way. This delay, or “latency,” is added to every single byte of data that is transferred — every image, every video, every javascript file, every CSS file, etc.

Wouldn’t it be great if a copy of your page could exist in a server both in Paris and in Texas? This is exactly what a content delivery network (CDN) does.

A CDN has servers all over the world, and they’ll store a copy of your website on those servers. This way, no matter where a visitor is, they’ll have access to content resident on a nearby server.




The good news is that there are plenty of CDNs out there; however, most are paid services. If you use Amazon for hosting, you can tap into their CloudFront service for CDN capabilities. If you’re a Rackspace customer, you’ll be happy to know that they partnered with Akamai to offer their customers CDN offerings.

But you don’t have to pay for a CDN. Surprise, surprise, Google is offering a free CDN called PageSpeed Service. In true Google fashion, they’re giving it away for free for a while. Then once you’re hooked, they’ll charge for it. That said, pricing will likely be competitive, and you’ll always have the option of switching to another provider down the road.

5. The Most Important Page Speed Tool

Within Google Webmaster Tools you now have access to “PageSpeed Insights.” This tool analyzes a given URL’s page load speed, and gives you tips on how to make improvements.

It is particularly valuable because Google uses a similar speed analysis as a factor in your rankings. Using this tool will allow you to see what Google sees. And if you’re smart, you might want to run it for competitors, and see how you stack up!


source: Naijafixer
Re: Tricks To Make Your Website Faster by Toluwani111: 9:34pm On Oct 01, 2016
abula112:
1. Optimize Your Database

Most sites use databases to store information. If you have an e-commerce store, blog, news site, or any type of dynamic functionality like internal search, then you are using a database. However, your database can impact your page speed.

Adding an index is one of the best ways to optimize your database for page speed improvements. Doing so will help your database find information faster. Instead of having to scan millions of records, your database can rely on an index to narrow down the data to a few hundred. This helps the data get returned to the page much faster.

For example, recently I was working on a site where the most popular pages were loading very slowly, taking between two to ten seconds each.

The problem was buried in the database — the table that stored the requested data didn’t have an index on it. After adding the index, the average page load time was reduced from the 2- to 10-second range to less than 1 second.

As you can see in the chart below, some load times were north of ten seconds — and, as I mentioned earlier, nobody is going to wait that long for a page to load. (Note that the page load times are measured in seconds — the lower the number, the faster the page loaded.)



2. Ditch Your Tracking Codes, Video Embeds & Share Buttons

Yep. You heard me right. You don’t need five different analytics programs. While tracking codes are vital for analyzing user behavior onsite, marketers should review each analytics program and determine which is necessary.

Remember, simplicity is key. Every time you add another tracking code to your page, it slows it down. For tracking codes you do include, be sure to put it at the bottom of the page. That way, the page can be displayed to the user even if the code hasn’t finished loading yet.

Also, limit the use of video embeds. Why? Video is a great way to build consumer engagement and create a better user experience; however, most video embeds (including YouTube) use iFrames to display the video.

iFrames place a real drag on page load times because they are essentially causing you to load a whole separate page within your main page.



The same goes for share buttons. Marketers should use share buttons to increase referral traffic and reach new consumers. However, most share buttons are javascript-based, and all the javascript does is generate an iFrame on the page.

Try limiting the number of share buttons on each page. This will help prioritize the marketing benefits rather than the negative impact to page speed.

Balance Page Speed With Rankings & Traffic

In each of the above cases, the brand manager needs to balance the risk of a slower page speed with the benefits of each initiative. The best way to make this decision is by testing the change and analyzing its effect on rankings and traffic against your KPIs.

For instance, many sites would prefer an increase in traffic due to share buttons and are comfortable with a decrease in rankings.

Bottom line: Multiple videos or share buttons on a page can dramatically slow down load time. It’s okay to use tracking codes, embed videos, and include share buttons, but be selective.

3. Use Caching When Available

When you visit a web page for the first time, your browser needs to request all the images, text, scripts, etc. from the website’s server. They are stored in your browser’s cache so that when you visit other pages on the site, you only need to download the parts of it that are unique. For example, the site’s logo will likely be the same on every page, so that is an image the browser can load from its cache quickly.

Up until the last year or two, browser caching capabilities were pretty limited. But once HTML5 came on the scene, it received some major updates.

For example, Local Storage allows you to store megabits of data using the browser instead of requiring it to be stored in your server’s database.

Alternatively, Application Cache lets you write fully-functional web applications that can run offline. The benefits of these two caching mechanisms are:

Speed: They allow you to access resources from your local computer so you don’t have to wait for the server to provide them.

Cost Savings: As you increase the use of local storage, your server use will decrease. That means you’ll be paying for less bandwidth and server usage.

Offline Browsing: Your users won’t have to worry about your app not working when their Wi-Fi goes down; their phone enters a dead zone, or you need to take the site down briefly for maintenance.

4. Content Delivery Networks

Imagine that your website’s server is located physically in Texas. Your site should load quickly for residents there because its data need only travel a short distance from the server to their computer.

Now, imagine a user in Paris wants to visit your site. The web page data must travel from Texas to France, stopping at multiple routers along the way. This delay, or “latency,” is added to every single byte of data that is transferred — every image, every video, every javascript file, every CSS file, etc.

Wouldn’t it be great if a copy of your page could exist in a server both in Paris and in Texas? This is exactly what a content delivery network (CDN) does.

A CDN has servers all over the world, and they’ll store a copy of your website on those servers. This way, no matter where a visitor is, they’ll have access to content resident on a nearby server.




The good news is that there are plenty of CDNs out there; however, most are paid services. If you use Amazon for hosting, you can tap into their CloudFront service for CDN capabilities. If you’re a Rackspace customer, you’ll be happy to know that they partnered with Akamai to offer their customers CDN offerings.

But you don’t have to pay for a CDN. Surprise, surprise, Google is offering a free CDN called PageSpeed Service. In true Google fashion, they’re giving it away for free for a while. Then once you’re hooked, they’ll charge for it. That said, pricing will likely be competitive, and you’ll always have the option of switching to another provider down the road.

5. The Most Important Page Speed Tool

Within Google Webmaster Tools you now have access to “PageSpeed Insights.” This tool analyzes a given URL’s page load speed, and gives you tips on how to make improvements.

It is particularly valuable because Google uses a similar speed analysis as a factor in your rankings. Using this tool will allow you to see what Google sees. And if you’re smart, you might want to run it for competitors, and see how you stack up!


source: Naijafixer

Please how fast is my blog www.dailyschoolgist..com ?
Thanks
Re: Tricks To Make Your Website Faster by abula112(m): 11:13pm On Oct 09, 2016
Pretty fast, its above average

(1) (Reply)

Ad / Facebook No Longer Allow Posts Carrying Non Hosted (free) Weblogs... / Premium Woocommerce,genesis Themes And Plugins For #1000

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 68
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.