Current time: 11-27-2020, 07:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dns-prefetch. Anyone familiar?
04-12-2012, 07:01 PM
Post: #8
RE: dns-prefetch. Anyone familiar?
How's about this one? Same behaviour - no auto prefetch for the second image from http://www.w3.org. Same behaviour in FF and Chrome. So, had naturally assumed that only needed explicit prefetch for my js loaded resources...

<html>
<head>
<meta charset="utf-8">
<!--<link rel="dns-prefetch" href="//nodejs.org">
<link rel="dns-prefetch" href="//www.w3.org">
<link rel="dns-prefetch" href="//www.w3schools.com">-->
</head>
<body>

<img src='http://nodejs.org/images/logo.png'/>

<script type="text/javascript">
(function () {
var astr = "a" + "l" + "e" + "r" + "t" + "('blocking io');",
f = new Function(astr)();
}());
</script>

<img src='http://www.w3.org/2008/site/images/twitter-bird'/>

<script type="text/javascript">
(function() {
var d = function() {
var img = document.createElement("img");
img.src = "http://www.w3schools.com/images/w3schoolslogo.gif";
var d0 = document.getElementsByTagName('div')[0];
d0.parentNode.insertBefore(img, d0);
};
setTimeout(d, 1000);
}());
</script>

<div/>
</body>
</html>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
dns-prefetch. Anyone familiar? - p83822 - 02-15-2010, 08:25 PM
RE: dns-prefetch. Anyone familiar? - p83822 - 04-12-2012 07:01 PM
RE: dns-prefetch. Anyone familiar? - pqdbr - 04-17-2012, 02:59 PM

Forum Jump:


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