Load first page faster
Posted: Wed May 25, 2016 1:51 pm
Hi
I have been doing some experiments with my site.
Using XH167 the homepage was taking a while to load - over 10 tests the average time to load was 11 seconds. I cleared the browser cache each time.
On google pagespeed it was ranked as 67/100
Following all the guidelines on google's site I created the first page from the page source as a plain html file.
In the HEAD I removed
I inserted an edited template stylesheet inline.
I put
at the end of the html file before the /body tag.
I named the file index.html and took out index.php.
Surprisingly it worked straight away.
The only thing I had to change was the menu links from
to
Average page time to load was less than 1s.
Google pagespeed is now 97/100
Everything seems to work. Going back to the home page from within the site serves the original home page.
I know that if I want to edit the home page It is now more difficult.
So my question is is there an easier way of doing this?
B
I have been doing some experiments with my site.
Using XH167 the homepage was taking a while to load - over 10 tests the average time to load was 11 seconds. I cleared the browser cache each time.
On google pagespeed it was ranked as 67/100
Following all the guidelines on google's site I created the first page from the page source as a plain html file.
In the HEAD I removed
Code: Select all
<link rel="stylesheet" href="./templates/newhomepage/stylesheet.css" type="text/css">
<script type="text/javascript" src="./plugins/jquery/lib/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="./plugins/jquery/lib/migrate/jquery-migrate-1.2.1.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
I put
Code: Select all
<script type="text/javascript" src="./plugins/jquery/lib/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="./plugins/jquery/lib/migrate/jquery-migrate-1.2.1.min.js"></script>
I named the file index.html and took out index.php.
Surprisingly it worked straight away.
The only thing I had to change was the menu links from
Code: Select all
<a href="?Contact_Us">Contact Us</a>
Code: Select all
<a href="/?Contact_Us">Contact Us</a>
Google pagespeed is now 97/100
Everything seems to work. Going back to the home page from within the site serves the original home page.
I know that if I want to edit the home page It is now more difficult.
So my question is is there an easier way of doing this?
B