Testing DNS-prefect and preconnect
|
10-17-2015, 08:40 AM
Post: #1
|
|||
|
|||
Testing DNS-prefect and preconnect
At the Velocity New York conference, I learnt about resource hints using the <link> tag. I was trying to check this on a test site. When I test the sample page on WebPageTest, I don't see the preconnect or DNS prefetch kicking in.
Is there some kind of a heuristic that prevents the resource hint from being considered? Here's my WPT result: http://www.webpagetest.org/result/151016...1/details/ Follow me on twitter: @rakshay |
|||
10-20-2015, 06:46 AM
Post: #2
|
|||
|
|||
RE: Testing DNS-prefect and preconnect
I was searching through the forum posts and found this interesting. In an old post (http://www.webpagetest.org/forums/showth...id=12382), there is a reference to a site that had "dns-prefetch" resource hint enabled. I checked the site and it still has the same code.
However, when I re-run the test, DNS prefetching failed: http://www.webpagetest.org/result/151019_2T_14F6/ Since this test was in IE, I switched the browser and ran a test on Chrome. Prefetch failed here as well: http://www.webpagetest.org/result/151019...b48dd9910/ Now I am confused if this feature has changed in some way and hence fails to work on WPT across the browsers. Follow me on twitter: @rakshay |
|||
11-05-2015, 08:39 AM
Post: #3
|
|||
|
|||
RE: Testing DNS-prefect and preconnect
I figured out that the WPT I had already showed a preconnect. After speaking to a few others, I realized that the site I am using has so few resourced and all of them statically referenced that preconnect may not help since browser may have discovered the links normally. I tried on another site and it has worked as expected. So I am good.
http://www.webpagetest.org/result/151102...05fcf981f/ Follow me on twitter: @rakshay |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)