Optimize WordPress for Performance

URLJet shows you how to speed-up your WordPress site

While we can’t cover everything involved in one tutorial, we’ll give you some starting tips on improving the speed of your WordPress site. A fast site will improve your users experience and rank better in search engines like Google and Bing as page speed has become part of their ranking algorithm.
Blazing WordPress Performance
Your URLJet hosting solution is pre-optimized at the server level and includes potent optimization features. Our WordPress hosting solutions include:
• Static Cache
• Dynamic Caching
• gZIP enabled by default.
• LiteSpeed Code Optimizer
• All SSD Drives
• Free Cloud Flare CDN
In this How-to we’ll cover the following topics: Using Cloud Flare, Optimize Images, Mimify CSS and JavaScript files. Utilize Browser Caching, Optimizing Your Word Press Database.
Our default configuration enables caching your WordPress site and adds to the the site speed. Different caching options are available under the Select PHP Version button in your account cPanel. Here you can switch between Xcache, Memcache or eAccelerator to find the one that best suits your site.
Enable gZIP compression
gZIP reduces size of data being transferred between your server and your site users. Its enabled by default but should you want to expand it to additional parts of your site placing the follow code will enable gZIP compression for images, CSS and JavaScript files. This will cause the web server to compress specific types of content before sending it to the sites users, where their browser decompresses the content before rendering it to the page. This can greatly reduce the size of the data transferred along with lowering your bandwidth and page load time.
To enable gZIP compression for a specific file type, add the line with the correct file type to your sites .htaccess file in the root WordPress folder:
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Using Cloud Flare
Content delivery networks (CDN) are networks that cache parts of your site at their locations (pops) around the world. This means you’re more static data is served from the closest server location and not from the URLJet datacenters. The reduces the latency effects of data traveling long distances. Use the Cloud Flare button in your cPanel to enable. Please note that some CDN options may break your site we recommended testing before fully committing.
Optimize Images
Images are vital to every website, as is optimizing them for your sites performance. The points below are important to keep in mind when adding images to your WorPress site.
• Size images correctly. Don’t upload big images then force the server to scale them to the desired size. Images loaded to the server should not be larger than the size their displayed in.
• Remove unneeded data from the images. Photoshop has a setting for this and Yahoo has a great free program called Smushit. These tool use a technique call lossless compression that removes additional data from your photos – creation date, camera used for the photo, gps coordinates, and so on, without affecting image quality.
• Use image Sprites for your themes, if possible. Sprites use a CSS technique that lets a one large image represent many small images on a page. This loads several images as one and one lager file transfers faster than many small ones. However, use of sprites must be considered when the theme is designed. Always for themes that utilize sprites.
Minify JavaScript and CSS files
Minifying your CSS and JavaScript files removes unnecessary data like double spaces, empty new lines, comments and so on to reduce their size. You can use online tools like Minify, the option built into Cloud Flare or the W3 Total Cache plugin that gives you the option to minify your theme’s CSS and JS files.
Utilizing browser caching
Browser caching let you specify how long your visitors’ browsers should cache thing like images, CSS, JS and flash files. Be aware that this can cause issue with highly dynamic site with many changes. To test or use it on your site, add the lines below to your .htaccess file. Please Note: the change below sets cache to 1 month. You can shorten or lengthen as your site requires.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css “access 1 month”
ExpiresByType image/gif “access 1 month”
ExpiresByType image/png “access 1 month”
ExpiresByType image/jpg “access 1 month”
ExpiresByType image/jpeg “access 1 month”
ExpiresByType image/x-icon “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresDefault “access 2 days”
Optimize your WordPress Database
Optimizing your WordPress database occasionally is also a good idea. It’s like running Disk Defragmenter on your local machine. To optimize you WordPress database, open PHPMyAdmin in cPanel and navigate to your WordPress database. Open it and scroll to the bottom of the page to locate a check box for tables having overhead. Click and open the drop down and choose Optimize Tables and let run till completion. It’s a good idea to run it a second time only choose Check All and Optimize Tables This is losing importance as MySQL moves more to the InooDB engine.

Post Written by


Leave A Reply

CommentLuv badge

%d bloggers like this: