Super Tips to Speed Up Website Loading

Started by saputratommy, 12-03-2011, 11:34:54

Previous topic - Next topic

saputratommyTopic starter

I will give you some tips Speed Up Website Loading

1. Using Compression (gzip)

When there is someone visits our website, then web hosting server will create an HTML file which is then sent to the visitor's browser. But when we activate compression feature, then the file sent is no longer in an HTML form, but rather in the form of file compression (gzip). HTML file so that we can be 50% – 80% smaller than its original size. Which in turn will speed up load our blog.

The majority of web hosts have this compression feature enabled. But if not, you can ask for directions from your web host or by using a WordPress plugin Gzip Compression (with notes, your web host supports gzip). To test whether your website is sent in compressed form or not, please check the whatsmyip.

2. Clean File PHP, CSS, and JavaScript Themes

In the php files wordpress theme, usually there are the comments syntax, tabs, and spaces (whitespace) that serves as a guide to assist or facilitate us in editing the theme. But all of that actually will only burden the loading site. So I suggest, if you are satisfied edit the look of the theme, then delete all comment syntax, tabs and spaces that exist.

Ways that can be used to remove the existing two, namely:

1. Automated.
You simply install wordpress plugins like WP-Cache Total Minify or W3 then automatically file your wordpress will be cleaned. Few advantages with using this plugin is that they also can put together some CSS and JavaScript files to reduce HTTP Requests.

2. Manual.
This is the way I use, because my principle if I could do it myself, why must use plugin? The trick with copy syntax PHP files wordpress themes (especially the header.php, index.php, home.php, footer.php, single.php, page.php, and search.php), then cleaned by using the services of Digital Coding. And cleaning results on the copy and paste back into the theme files. In this way my HTML file which was originally 39 KB is now a 18.5 KB (before compressed again with gzip).

Then to clean up the CSS, I use the services of YUI Compressor. As for the shrink and incorporate some JavaScript into one file, I use the services of UglifyJS.

NB: It is advisable to conduct this experiment on your own computer by using WAMPP, XAMPP, MAMP etc.. Do the live site.

3. Eliminate Unnecessary Plugin

Indeed, with many plugins with an interesting feature on the internet will make us tempted to put it on the website. But the fundamental question we must ask ourselves before installing the plugin is, do we really need one?

When we install the plugin, in fact we also add the javascript and CSS default plugin.Additional javascript and CSS means will increase the load time of our blog. So my advice, save the plugins that are useful and the rest, delete.

4. Move Javascript into the footer.php

Usually javascript is between syntax <head> </ head>. The problem with javacsript in <head> </ head> is, when the javascript it takes a long time to load, then your page will not appear. Sometimes need to refresh many times can load the entire blog page.

The solution, move the javascript to the footer.php file, just above the syntax </ body>.Making the content of your blog page will appear first before loading the javascript.

To move the javascript I use the plugin JavaScript To Footer. This plugin will remove all the javascript, including built-plugins javascript into the footer.

5. Plugin Cache

When someone opens the page of our website, then the server will process the files wordpress to be an HTML file and then sent to the visitor's browser. And in the process, the plugin cache will save the HTML file that has been processed by the server, so that when there are other people who visit the same page, then that will be sent to the visitor's computer is an HTML file that is in the cache. Server does not need to perform the process of creating the HTML back. In short, the less workload the server, the less time it takes to load our website.

From some plugin name cache, which is often used by bloggers is W3 Total Cache and WP Super Cache.

6. Optimizing Images

A website without a picture like vegetables without salt. However, the use of images without the proper settings will take effect on the slow loading website. Therefore, optimization of the image is very important.

There is a wordpress plugin called smushit that easier for you to optimize the image.Reviews more details can be found in Saving Hosting By Compressing Images.

7. Using a CDN (Content Delivery Network)

CDN is a system for sending static content to a network file server that is spread over different geographical locations around the world.

When a website is linked to a CDN, then the static content files requested by visitors of my blog will be sent from the server closest to him. For example a web server we host in America, and our website is opened by visitors from Indonesia. Then the static content files that are sent do not originate from a web server hosted in the U.S., but from the nearest server that is connected to the CDN, for example from Singapore. Since the server static content closer, then the automatic loading time of our website will also increase drastically.

Some CDN providers for free that you can use, among others CoralCDN, Cloudflare, or Speedymirror. As for the blog majuterus, CDN that I use is GoogleAppEngine.

8. Parallel Download With Sub Domain

Do you ever use Internet Download Manager? If you have never tried to please. Internet Download Manager is a Windows program that serves to accelerate the process of downloading files from the internet. In accelerating the process of downloading, Internet Download Manager using parallel downloads that allows downloading files from multiple domains pieces. So the download becomes much faster than downloading from one domain only.

What about our website? Our website will also be able to load faster if we use parallel download. So our blog content is not downloaded from one domain only, but from several other domains. But I do not recommend you to buy a new domain. Simply create a sub domain (can be also coupled with the CDN), then we can maximize parallel downloads.

For reference, please see how to create a CDN with a subdomain.

9. Reduce Number of Posts In Homepage

After optimization of the above efforts, we will obtain significant results. But there's one more thing that can make website loading faster again, namely by reducing the number of posts displayed on the homepage. Should the number of posts on the homepage just 4 only (depending on the type of your website theme).

10. Optimizing the Database Table

Having satisfied our fiddling with wordpress. The final step, the optimization of your database. To optimize the database, you have to login to your cPanel> select myphpAdmin. Select all the existing table and select Table Optimize menu

For More Information about SEO. Please Visit My Site: WWW.SEO-SOCIETY.COM
  •  


Hogward

It is important to reduce number of images particularly found at the home page of the site. And combine the CSS file to one. Yslow is the best addon to check for wesite loading time.
  •  


Mclaurin Rachel

#2
Optimize Your Images: Make sure your images are properly compressed and in the optimal format. Tools like TinyPNG or Optimizilla can help reduce the size of your images without losing noticeable quality. Implementing an image CDN can also help deliver images faster to the user.

Minimize HTTP Requests: Try to limit the number of items that need to load (like scripts, CSS, and images). Each of these creates a separate HTTP request and can slow load times. Tools like the Network Panel in Chrome DevTools can help you see how many requests your site makes.

Use a Content Delivery Network (CDN): A CDN hosts your files across a large network of servers around the world. When a user's browser downloads files from your site, they're served from the server that's closest to them, speeding up load times.

Enable Browser Caching: This allows users who have visited your website before to store a version of your site on their machine, reducing the amount of content that must be downloaded on return visits.

Minify and Combine Files: Minifying your HTML, CSS, and JavaScript files removes unnecessary locations, spaces, and comments. This will make your file size smaller, therefore, decreasing the load time. You can also combine different files into one to reduce the number of requests.

Use GZIP Compression: Compression reduces the bandwidth of your pages, thereby reducing HTTP response. You can use GZIP or Brotli compression for all HTML, CSS, and JavaScript files that are larger than 150 bytes.

Reduce Server Response Time: Monitor your website's performance and identify any bottlenecks that could be slowing it down. This could be server issues, slow routing, slow database queries, etc.

Prioritize Above-the-Fold Content (Lazy Load): You can prioritize loading of the content that's visible on the screen when the page first loads, and delay the loading of the content below the fold or not visible immediately.

Optimize CSS Delivery: CSS holds the style requirements for your page. Therefore, ensuring that your CSS is setup optimally will help the browser render your site more quickly.

Avoid Redirects: Each time a page redirects to another page, your visitor faces additional waiting time for the HTTP request-response cycle to complete.

Leverage HTTP/2: If your server supports it, use HTTP/2 instead of HTTP/1. HTTP/2 can handle more concurrent connections and thus leads to better use of available network resources and improved user experience.

Upgrade Your Hosting Plan: If you're on a cheaper, shared hosting plan, you might find your site's performance lacks because you're sharing resources with a multitude of other websites. If this is the case, it may be time to consider upgrading to a VPS or a dedicated server.

Implement AMP (Accelerated Mobile Pages): AMP is a simplified version of HTML created by Google. With AMP, you can create lightweight versions of your web pages that load quickly on mobile devices.

Implement a Server Side Cache or Reverse Proxy: Consider technologies like Varnish or an Nginx reverse proxy to cache static content. This method stores data so that future requests for that data can be served faster.

Load JavaScript Asynchronously: Traditional synchronous loading of scripts causes them to load one at a time. If you have one script that's particularly large and takes a long time to load, it can delay the loading of other scripts. Instead, use async loading so your scripts can load simultaneously.

Preload Key Assets: Preloading gives you more control over how particular resources are fetched for current navigation. It informs the browser about resources your pages will need soon after loading. This can be done using the <link rel="preload"> tag.

Remove Unnecessary Plugins: Every plugin you add to your website introduces its own set of scripts and styles, and sometimes additional database queries. These all put additional load on your server and increase load time.

Database Optimization: Regular optimization of your database can greatly improve site performance. You can remove outdated and unnecessary data and ensure the database runs smoothly.

Use CSS Sprites: A CSS Sprite is a single image file that contains several graphics. By using CSS background-position property, you can hide everything in an image except for the section you need, to create the effect of multiple images.

Use WebP format for images: The WebP format is a modern image format developed by Google that provides improved lossless and lossy compression for images on the web. Using WebP images can yield substantial bandwidth and storage savings.

Defer Offscreen Images: Offscreen images are images that appear below the fold and aren't visible to the user until they scroll down. By deferring the load of these images until they're needed, you can save bandwidth and speed up the initial load time.

Optimize Web Fonts: Web fonts add extra HTTP requests to external resources. Fonts should be in WOFF2 format (Web Open Font Format 2), which can yield a 30% average compression gain over a WOFF font.

Limit the Use of Web Fonts: Consider only selecting the styles you need. Each style and weight you add will result in more time spent rendering your page.

Eliminate 404s: 404 errors cause extra unnecessary requests. Check your website for 404 errors and clean them up.

Serve scaled images: Ensure images are resized to fit the layout to avoid unnecessary resource consumption.

Avoid Frames: Frames, iFrames or a "window within a window," can significantly slow down your webpage loading times. They also create challenges with web crawlers and aren't great for SEO.

Inline Small CSS: This can potentially save multiple HTTP requests by reducing the size of the HTML file, ultimately speeding up the loading time of your page.

Avoid Bad Requests: Broken links cause your site to suffer in terms of user experience, reputation with search engines, and consumes bandwidth needlessly.

Configure ETags: ETags are a mechanism that web servers and browsers use to validate cached components. By careful configuration, they can improve your site's performance by reducing the number of requests.

Use a Persistent Connection (Keep-Alive): This keeps the connection to the server open for multiple HTTP requests and can reduce the latency for subsequent requests.

Add Expires or Cache-Control Headers: Use Cache-Control headers to specify policies in both browser and intermediary caches. In HTTP/1.1, the Cache-Control header takes precedence over the Expires header.

Avoid Empty Image src: If you find an empty image src code, your browser will make an unnecessary trip to the server, adding time to your page loading speed.

Use prefetching techniques: DNS prefetching and link prefetching will allow browsers to perform domain name lookups and loading in the background, which can significantly speed up your page loads.

Avoid Inline JavaScript: Rather than placing scripts throughout your webpage, consolidate them into fewer files.

HTTP/2 Implementation: If you haven't already, consider switching to HTTP/2. This updated HTTP standard introduces new capabilities that facilitate faster and more efficient communication between client and server.

Preconnect to Required Origins: Preconnect allows the browser to set up early connections before an HTTP request is actually sent to the server. This includes DNS lookups, TLS negotiations, etc, thus saving load time.

Avoid Excessive DOM Size: A large DOM can increase memory usage, cause longer style calculations, and produce costly layout reflows. Make sure to keep your DOM size reasonable.

Use the "Integrity" Attribute: When using SRI (Subresource Integrity), this attribute ensures your resources load correctly without unexpected manipulation.

Eliminate request chains: Request chains can significantly delay the load time of resources, especially on high-latency connections. Preload directives or HTTP/2 Server Push can be used to accelerate loading.

Lazy load video and other heavy embedded content: Like images, heavy media like videos or interactive content (say, a Google map) can slow your site down. Lazy loading these resources ensures they only load when needed.

Consider using a content delivery network (CDN): CDNs can help deliver your content, especially static resources like images, CSS and JavaScript files, more quickly to users across the globe.

Avoid unnecessary animations and parallax effects: While they can look attractive, complex animations and effects can slow down your site. Use them sparingly and strategically.

Prioritize visible content: Ensure the above-the-fold content, i.e., what users see in their viewport first, loads quickly to improve perceived performance.

Serve resources from a consistent URL: Duplicate URLs cause browsers to fetch the same resource many times, which results in unnecessary data usage.

Avoid using too many webfonts: While webfonts can enhance aesthetics, they add extra HTTP requests and can slow down your site. Stick to a few important ones.

Avoid unnecessary CSS imports: Linking CSS files with @import can create additional HTTP requests during the loading process and slow down your site.

Use server-level compression: Features like Apache's mod_gzip or mod_deflate can compress data before sending it for download, thus reducing load time.

Use newer, faster APIs: Where possible, use modern APIs such as Fetch instead of the slower, older ones such as XMLHttpRequest.

Avoid redirects: Each redirect makes an additional request-response cycle and adds latency.

Avoid meta refresh: Using meta refresh for redirections is not efficient and should be replaced with standard HTTP redirection methods.

Flushing Buffer Early: Involve sending the initial part of the HTML document as soon as possible to unlock the browser functionalities like fetching critical resources and painting content.

Use the "async" and "defer" attributes with scripts: These attributes allow the browser to continue parsing the HTML document while the script is being downloaded, which can help reduce the perceived load time of your page.

Integrate AMP (Accelerated Mobile Pages): AMP is an open-source library that provides a straightforward way to create web pages that are compelling, smooth, and load near instantaneously. It's SEO friendly and good for mobile browsing where speed matters.

Avoid or Minimize the use of CSS Resets: Though CSS resets eliminate browser inconsistencies, they add extra weight to the site. Instead, consider using a normalization stylesheet or writing CSS that only targets the necessary elements.

Make JavaScript Non-Render Blocking: Similar to CSS, parse blocking JavaScript can hinder the initial load of a page. If the JavaScript files are not required at load time, use async or defer attributes so that rendering isn't blocked.

Preloading Key Assets: Preload is a directive which loads resources like scripts, fonts, and images in the background to improve loading speed when they are needed.

Resource Hints: Resource hints, such as DNS-prefetch, preconnect, prefetch, and prerender, can help speed up your site by resolving DNS earlier, performing handshakes, and fetching resources.

Using Server Push: HTTP/2 Server Push allows the server to start sending resources to the client before it even asked for them.

Leveraging Browser Caching via .htaccess: If your website runs on an Apache server, you can add a few lines of code to your .htaccess file to leverage browser caching and decrease page load times.

Prioritize Reusable UI Components: Develop a UI system with reusable components. This approach improves caching, accelerates design consistency, and eases the maintenance process.
The game is over.
  •  

Rauny

These are all time great tips that can speed up the website loading time. But Google has recently released a tool to measure web page speed Online. It is also great analyzer. You can reach it here: http://cogniter-chandigarh.blogspot.com/2011/12/speed-up-your-website-loading-time-with.html
:) ;)