Current time: 12-13-2019, 05:49 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thought I was doing well
08-03-2012, 12:14 PM
Post: #1
Thought I was doing well
Ive been a user of this site for years, but just realized it has a forum.

I notice when I run a test on my site here I get a result thats over 3.5 seconds... but when I test on a few other sites I get under 1 second results.

here are my webpagetest results...

http://www.webpagetest.org/result/120803...1/details/

I am a page speed fanatic and am trying to squeeze every last ounce of speed from my site.

I know I need to learn how to combine my JS files (I try it but I mess up my sites responsive design when I do)... but what other things can you guys recommend for me to improve my score?

Thank you and thanks for the site!

Lonnie
Find all posts by this user
Quote this message in a reply
08-04-2012, 01:04 AM
Post: #2
RE: Thought I was doing well
Is your main user base in California? If not, using a CDN would be your easiest and biggest win and would probably shave close to a second off the times.

You should also change the html5shim code to load from your server instead of googlecode. Googlecode isn't meant for serving ststic files and doesn't include simple things like caching headers. They updated the docs recently to encourage self-hosting - http://code.google.com/p/html5shim/

Beyond that, it looks like all of the images for your slideshow are getting loaded at the same time, competing for bandwidth, even though only one of them is displayed initially. It's more work but you'd benefit from lazy-loading the hidden ones and then triggering the rotation after they have all loaded.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-04-2012, 01:30 AM
Post: #3
RE: Thought I was doing well
Thank you for replying.

I purchased an edgecast cdn about a month ago but cant figure out how to upload my content to it.. so it sits worthless.

The shim was part of the bootstrap template I bought... i will look into doing as you suggested.

Thanks for the feedback about the images loading at the same time... I dont know how to "lazy load" them.. but its another thing I will look into.

Thank you!
Find all posts by this user
Quote this message in a reply
08-04-2012, 01:51 AM
Post: #4
RE: Thought I was doing well
A lot of CDN's will work in a "pull" mode where they will automatically pull the resources from your server as they are requested.

It might be worth giving Cloudflare a try. You can get the benefit of the CDN without really having to make any changes to your site (and they can also provide some other optimizations).
Visit this user's website Find all posts by this user
Quote this message in a reply
08-07-2012, 06:19 AM
Post: #5
RE: Thought I was doing well
Im getting a little bit better.

Got it down from 52 to 29 requests.

The funny thing is I thought my site was fine when i had 65 requests.... I would have never thought I could have got it down to 29 without almost any visible changes to the sites look from a users standpoint.

http://www.webpagetest.org/result/120806...1/details/

I deleted some images that nobody was probably looking at anyway on the bottom right.

I also:

1. put the site on cloudflare
2. deleted some little used JS files
3. combines my css into one larger file
4. put the shiv in a local file

that got my time down to 2.7 seconds.

Im thinking cloudflare has messed up my scrolling images at the top of my site.. so ill be working on that next.

The site is http://bootcamp4me.com is anyone is interested.

thanks for all your help!
Find all posts by this user
Quote this message in a reply
08-07-2012, 06:41 AM
Post: #6
RE: Thought I was doing well
One really quick suggestion that should shave another 200ms, add an empty conditional IE comment up before the css include. For whatever reason, IE blocks when it reaches the first conditional comment which is what is causing the break after min.css (instead of downloading the javascript in parallel).

http://www.phpied.com/conditional-commen...downloads/
Visit this user's website Find all posts by this user
Quote this message in a reply
08-07-2012, 07:00 AM (This post was last modified: 08-07-2012 07:09 AM by Doc Fluty.)
Post: #7
RE: Thought I was doing well
So if i am reading your recommendation correctly... I make it something like this before the stylesheet?

<!-- styles -->
<!--[if IE 6]><![endif]-->
<link href="assets/css/min.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://bootcamp4me.com/assets/dist/html5shiv.js"></script>
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="assets/css/ie.css" />
<![endif]-->
<!-- fav and touch icons -->

If i do the test from Chrome at the same location it goes down to 2.41

so yeah, IE is slower
Find all posts by this user
Quote this message in a reply
08-07-2012, 09:09 AM
Post: #8
RE: Thought I was doing well
yup, that one change should improve IE performance across the board.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-08-2012, 04:49 AM
Post: #9
RE: Thought I was doing well
"Im thinking cloudflare has messed up my scrolling images at the top of my site.. so ill be working on that next.
thanks for all your help!"

This sounds like a Rocket Loader bug. Do you have this turned on?
Find all posts by this user
Quote this message in a reply
10-23-2012, 10:13 AM (This post was last modified: 10-23-2012 10:15 AM by Doc Fluty.)
Post: #10
RE: Thought I was doing well
No, i wasn't. I think the problem was either that I deleted a JS file that I wasn't supposed to or that the "combine js" option in Cloudflare caused issues.

I have since moved on to MaxCDN

The best I have now is 2.2 seconds using a MaxCDN

http://www.webpagetest.org/result/121023...1/details/

Still think I should be going much better with only 22 requests and a 256kb page.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)