Page load time has always been important. No one wants to surf a slow website.
It's even more so important nowadays as the majority of people are surfing using their mobile devices without as much bandwidth.
When someone sees your link on Facebook and clicks over, if you're not loading almost instantly it's highly likely they're going to click off and never return again.
However, this can be fixed with just a couple of simple optimizations:
1. Start by testing your website's speed and see where you can make improvements.
2. If using Apache, make sure mod_deflate (or GZIP compression) is enabled. Most of the time this can be enabled by editing the .htaccess file in your root directory with the following:
This will cause Apache to compress all CSS and javascript files by using mod_deflate.
3. Leverage browser caching in Apache. As with the edit above, add these lines to your .htaccess file:
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$"> <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 14 days" Header set Cache-Control "public" </IfModule> </FilesMatch> <FilesMatch "\.(html|htm|xml|txt|xsl)$"> Header set Cache-Control "max-age=7200, must-revalidate" </FilesMatch>
</pre>
This will add far future expire headers to your static content (images, js, css, etc.).
4. Enable Cloudflare to leverage their CDN and other website optimizations. This comes pre-configured on all Toranj it solutions, simply enable inside of cPanel:
5. Activate Cloudflare Railgun. A $200/month value, this is also included at no charge on all Toranj it accounts. Railgun accelerates the connection between each CloudFlare data center and an origin server so that requests that cannot be served from the CloudFlare cache are nevertheless served very fast
All of these optimizations can be implemented in under 30 minutes and can save you a lot of headache having your pages accessible to people around the globe no matter what device they're on.
Our hardware is already made readily available in the cloud using high performance solid state drive storage with Raid 10 and a lot more RAM than the traditional web host. Feel free to reach out to our team for further advice on how to optimize your landing pages!