> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.namehero.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 5 Simple Tricks To Increase Landing Page Load Time

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](https://gtmetrix.com/) 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:

```
<IfModule mod_mime.c>
AddType application/x-javascript .js
AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
<IfModule mod_setenvif.c>
SetEnvIfNoCase Request_URI \.(?:rar|zip)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:gif|jpg|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:avi|mov|mp4)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
```

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>
```

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](https://www.cloudflare.com/features-optimizer). This comes pre-configured on all NameHero solutions, simply enable inside of cPanel:

[![](https://namehero.intercom-attachments-1.com/i/o/676208836/882ad51b0f931a85adf80ee6/Screenshot-2015-09-04-09.27.55.png?expires=1728569700&signature=3dea8c48627f561bb4365917bb6253e328542318e81e05d9179e7b4fe1f2ee62&req=cichFMl2lYJZFb4f3HP0gDYElC%2BQnlmgxyD%2Bcp4z7dXPFUDs5CQjwerREUj1%0AEu5oZNE2bmXuAAElOw%3D%3D%0A)](https://storage.crisp.chat/users/helpdesk/website/2beedde1558d0c00/26ccaa21-5aa6-4c71-aac4-5f8b3d_1lmd2pa.png)

5. **Activate Cloudflare Railgun**. A $200/month value, this is also included at no charge on all NameHero 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:

[![](https://namehero.intercom-attachments-1.com/i/o/676208848/e374e7715dd0af8581feb523/Screenshot-2015-09-04-09.33.36.png?expires=1728569700&signature=93eeb173ce17c32854f19518ea8d3fd810b91c8582942881abffd09557f20e85&req=cichFMl2lYVXFb4f3HP0gE7Tmg4HFgi4KjJJBqutzugu8jzAfi69HoFfLue8%0AsIHy3B6md9%2BZZViPTA%3D%3D%0A)](https://storage.crisp.chat/users/helpdesk/website/73d24016cc279400/f28a411b-5908-4a50-bc21-bccf5a_j8agib.png)

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!