Current time: 12-17-2017, 05:50 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help - why's this page so slow?
01-07-2011, 09:34 AM
Post: #1
help - why's this page so slow?
http://www.webpagetest.org/result/110106_2X_a7c577db5e561f792fec80747a3cf8db/



any help would be appreciated.

have set up htaccess to cache everything, used minify to combine scripts and css files, using gzip on my server's files - but it's still dog slow and i am not sure how to make it faster.
Find all posts by this user
Quote this message in a reply
01-07-2011, 10:40 AM
Post: #2
RE: help - why's this page so slow?
Lol - dog slow, I was expecting something > 20 seconds, not 3.5 :-)

Can the js be loaded at the bottom of the page instead of the head without breaking functionality (would load in parallel with images)? or even asynchronously (though that's usually more work).

From what I can tell, al of your images for the slide show load right after each other as part of the main page load. You could load just the initial picture first and then after onLoad get the others to load and initiate the slideshow code.

It looks like you cold benefit a little bit by spriting the icons as well.

Beyond that you should look into CDN options. There are some free and low-cost options available and your images will load a fair bit quicker being served from a CDN (the green request time for each item will be reduced quite a bit).

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
01-07-2011, 10:41 AM
Post: #3
RE: help - why's this page so slow?
btw, out of those suggestions, moving the javascript would be the biggest bang and would improve the start render time which goes directly to the user experience.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-07-2011, 09:44 PM
Post: #4
RE: help - why's this page so slow?
(01-07-2011 10:41 AM)pmeenan Wrote:  btw, out of those suggestions, moving the javascript would be the biggest bang and would improve the start render time which goes directly to the user experience.

Thanks pat. I'll try these. I came across headjs.com and also defer="defer"

either of this useful.

currently moving the js out of the head breaks something - will figure out what and proceed with your suggestions.

Thanks!
Find all posts by this user
Quote this message in a reply
01-11-2011, 11:47 PM
Post: #5
RE: help - why's this page so slow?
(01-07-2011 09:44 PM)JesseG Wrote:  
(01-07-2011 10:41 AM)pmeenan Wrote:  btw, out of those suggestions, moving the javascript would be the biggest bang and would improve the start render time which goes directly to the user experience.

Thanks pat. I'll try these. I came across headjs.com and also defer="defer"

either of this useful.

currently moving the js out of the head breaks something - will figure out what and proceed with your suggestions.

Thanks!

started implementing amazon's cloud cdn and webpagetest started showing
http://www.webpagetest.org/result/110111...02838e144/

"The test completed but there were no successful results."
what's that caused by? i've reverted the code - and it's still giving me that result. eek!
Find all posts by this user
Quote this message in a reply
01-12-2011, 12:41 AM
Post: #6
RE: help - why's this page so slow?
You Did it, YOU broke WebPagetest! ;-)

Sorry for the bad timing. Something got screwed up on the WebPagetest server and it wasn't accepting the posts of the result files (anything larger than a few K was being dropped). I bounced the server and everything should be working again.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-23-2011, 08:10 AM
Post: #7
RE: help - why's this page so slow?
ok - have the amazon cdn in place. seems awfully slow.

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

is there an alternate low cost higher performance option?
Find all posts by this user
Quote this message in a reply
01-24-2011, 01:34 AM
Post: #8
RE: help - why's this page so slow?
Try running several tests just to make sure you're not seeing an artifact of the CDN edges getting populated. Usually the first time a CDN node sees a given request it has to go back and fetch the actual asset so it's quite a bit slower.

That said, if you're not tied to S3 storage for your site you have quite a few options. I'm a pretty big fan of MaxCDN (and they're crazy-cheap) but if you need a broader footprint you'll probably have to look into something like Akamai (I think there is a low-volume reseller of Akamai). There's also Cloudflare which has a free entry-level offering if you wanted to try them out.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2011, 10:43 PM
Post: #9
RE: help - why's this page so slow?
Thanks. I've set up an account at MaxCDN, using webpagetest's referrer code, and am testing it now.

First impression is it's much easier to get my site up and running compared with amazon's cloud.

with maxcdn it took 45 minuets to get ALL of my site images using the cdn and using correct caching info.

with amazon cloud it took 3-4 hours to get some of my images loaded and caching info set and still i hadn't set up the bulk of my product images.
Find all posts by this user
Quote this message in a reply
01-25-2011, 08:08 PM (This post was last modified: 01-25-2011 08:09 PM by JesseG.)
Post: #10
RE: help - why's this page so slow?
left javascript in the header but wrapped it in
reference: http://friendlybit.com/js/lazy-loading-a...avascript/

Code:
<script type="text/javascript">
(function() {
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://www.MYSITE.com/myscript.js';
    var x = document.getElementsByTagName('script')[0];
    x.parentNode.insertBefore(s, x);
})();
</script>

at the start of this thread the times were
Load time 3.551s
Start Render: 1.683s

currently:
http://www.webpagetest.org/result/110125...9cf06177b/
Load time 2.918s
Start Render: 0.988s

so far i've:
- added a cdn
- contacted liveperson and asked them to turn off ssl for my account
- removed a few images
- wrapped javascript in the code given above

will now combine css images and re-write the html and css.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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