Current time: 12-11-2017, 09:12 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what's the holdup to render on this?
02-15-2012, 02:40 PM
Post: #1
what's the holdup to render on this?
not sure what's up.
I've been able to get a decent TTFB speed out of my local server here... and had better render times in previous tests.

lately I've added pinterest buttons here... and am curious.
is the holdup to render page the pinterest js -> html load?

page test at
http://www.webpagetest.org/result/120215_7Q_3839A/

any tips appreciated.
I had the render time down to about 1.5 seconds earlier.
(yes, slow, but it's off an office imac on dsl)
Find all posts by this user
Quote this message in a reply
02-16-2012, 08:05 AM
Post: #2
RE: what's the holdup to render on this?
Your webserver is located in canada, and you are doing a test from ashville North Carolina. That is a reason for you TTFB to take so long to connect.
Find all posts by this user
Quote this message in a reply
02-16-2012, 08:23 AM
Post: #3
RE: what's the holdup to render on this?
(02-16-2012 08:05 AM)mrPerezMarc Wrote:  Your webserver is located in canada, and you are doing a test from ashville North Carolina. That is a reason for you TTFB to take so long to connect.

No, I don't think the server location is the issue.
I'm not overly concerned with TTFB, as I am with the time to render page. Huh

in previous tests the time to render was much quicker.

There seems to be a hang now, that was not there before.
test from chicago.
http://www.webpagetest.org/result/120215_PT_38E4B/
test from los angeles
http://www.webpagetest.org/result/120215_YH_38E5K/

in both tests, the pinterest links seem to be the point where the page starts to "render".

Previously, the page rendered quickly in comparison.

also note the long times to the api.pinterest...... count.json links.
Find all posts by this user
Quote this message in a reply
02-16-2012, 08:55 AM
Post: #4
RE: what's the holdup to render on this?
from what I can see, you are loading http://assets.pinterest.com/js/pinit.js twice, try removing one of them
Find all posts by this user
Quote this message in a reply
02-16-2012, 09:22 AM (This post was last modified: 02-16-2012 09:53 AM by vincej.)
Post: #5
RE: what's the holdup to render on this?
(02-16-2012 08:55 AM)mrPerezMarc Wrote:  from what I can see, you are loading http://assets.pinterest.com/js/pinit.js twice, try removing one of them

no, I don't think so... checked all the tests, the pinterest js is called only once.

I'll note that in past, I used to see the page render at around request
#11 of the page.... now it's at request number #29 .
I've disabled the pinterest calls..... and I still see the same .

So it must be one of the css or js files blocking render?

hmm. might have caught it.

disabled the pinterest links.

disabled the google analytics code (funny, it's set to be async)..
Get this result 1.629s to render
http://www.webpagetest.org/result/120215_DR_38EQE/

re-enable google analytics get this. 1.848 secs to render
http://www.webpagetest.org/result/120215_Y0_38EQW/

even though the ga .js file takes only 64 ms to load.. it seems to create a lag before next request.

reinstalled the pinterest links, and sure enough, the culprit is the google analytics.
with pinterest back on, and ga off, I get render at 1.629s
http://www.webpagetest.org/result/120215_HY_38ETJ/

therefore pinterest does not seem to be creating the slowdown, google is.

sure enough, re-enable the google analytics code and the render time is back up to 2.059s

http://www.webpagetest.org/result/120215_1M_38EVR/

disable it, and it's back to 1.74s
http://www.webpagetest.org/result/120215_YC_38EW6/

funny that google analytics would cost me from .3 to .5 seconds, must be a conflict with other stuff.

anyone else see this before?
Find all posts by this user
Quote this message in a reply
02-16-2012, 09:57 AM
Post: #6
RE: what's the holdup to render on this?
I loaded your page in my chrome browser and looked at the source. Look at the bottom, you will see that http://assets.pinterest.com/js/pinit.js is loading twice.

you should put your css files call above all JS calls in the <head>

if anything, i would load the pinterest after onload or at least in asynchronous mode.
this post seems to solve that issue:
http://www.bloggingpro.com/archives/2012...ress-blog/

Let me know how it goes
Find all posts by this user
Quote this message in a reply
02-16-2012, 10:34 AM
Post: #7
RE: what's the holdup to render on this?
Also make sure to do a lot of runs if you are trying to measure differences of 100-200ms. That can easily be in the noise for individual test runs.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2012, 10:46 AM (This post was last modified: 02-16-2012 10:49 AM by vincej.)
Post: #8
RE: what's the holdup to render on this?
I'll follow your notes.... thanks.

for now, simply putting the google analytics at the bottom seems to help with overall render.
I'll get your other points done... and let you know.

I found the duplicate pinit.js thanks.
due to some optimizers, I don't have complete control of locations of css js files, but most are in best locations.

I tried the blog post asynchronous mode for pinterest.... works great. pushes the pinterest calls further down the page, after point of render.

Thanks, I think that's as good as it gets :-)

cheers.
Vince


thanks muchly.
Vincee.
(02-16-2012 10:34 AM)pmeenan Wrote:  Also make sure to do a lot of runs if you are trying to measure differences of 100-200ms. That can easily be in the noise for individual test runs.

thanks, Patrick... yes been running a lot .... and thanks for the great tool.. helped me catch these minor faults today, as other days.

I never fail to be amazed at your tool here Idea

cheers.
Vincej Heart
Find all posts by this user
Quote this message in a reply
02-16-2012, 11:26 AM
Post: #9
RE: what's the holdup to render on this?
glad i could help,
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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