<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.midsouthmakers.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js%2FIPv6.js</id>
	<title>MediaWiki:Common.js/IPv6.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.midsouthmakers.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js%2FIPv6.js"/>
	<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=MediaWiki:Common.js/IPv6.js&amp;action=history"/>
	<updated>2026-05-12T22:22:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=MediaWiki:Common.js/IPv6.js&amp;diff=6570&amp;oldid=prev</id>
		<title>Dan9186: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=MediaWiki:Common.js/IPv6.js&amp;diff=6570&amp;oldid=prev"/>
		<updated>2010-11-18T20:47:59Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; /** IPv6 AAAA connectivity testing *******************************************************&lt;br /&gt;
  *&lt;br /&gt;
  *  Description: Uses hidden images to measure the possible negative impact of IPv6&lt;br /&gt;
  *  enabling the Wikimedia sites.&lt;br /&gt;
  *  This works by adding a hidden div to the footer with several image tags. &lt;br /&gt;
  *  The source addresses of the image tags are set to domainnames which have v4, v6 and&lt;br /&gt;
  *  both address types set.  The script times how long objects take to load.&lt;br /&gt;
  *  Results are sent back to the server. http://ipv6and4.labs.wikimedia.org/stats.html&lt;br /&gt;
  *  Based on http://www.braintrust.co.nz/ipv6wwwtest/&lt;br /&gt;
  *  Contact: [[User:Gmaxwell]], [[User:Mark Bergsma]], [[User:Mindspillage]]&lt;br /&gt;
  */&lt;br /&gt;
        var __ipv6wwwtest_timeoutMsec = 10000; // Timeout for &amp;#039;final&amp;#039; result message in milliseconds&lt;br /&gt;
        var __ipv6wwwtest_hostSuffix = &amp;quot;.labs.wikimedia.org&amp;quot;; // Suffix to go on the IMG hostnames&lt;br /&gt;
        var __ipv6wwwtest_stopAtTimeout = true; // Whether to stop when the timeout is reached or not&lt;br /&gt;
 &lt;br /&gt;
        var __ipv6wwwtest_pageLoadTime;&lt;br /&gt;
        var __ipv6wwwtest_timeout = false;&lt;br /&gt;
        var __ipv6wwwtest_ipv4LoadTime = false;&lt;br /&gt;
        var __ipv6wwwtest_ipv4relLoadTime = false;&lt;br /&gt;
        var __ipv6wwwtest_ipv6LoadTime = false;&lt;br /&gt;
        var __ipv6wwwtest_ipv6bigLoadTime = false;&lt;br /&gt;
        var __ipv6wwwtest_ipv6and4LoadTime = false;&lt;br /&gt;
        var __ipv6wwwtest_id = Math.floor(Math.random()*Math.pow(2,31));&lt;br /&gt;
 &lt;br /&gt;
        function __ipv6wwwtest_startTest() {&lt;br /&gt;
                __ipv6wwwtest_pageLoadTime = new Date();&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_ipv4Img&amp;quot;).src = &amp;quot;http://ipv4&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/ipv4.gif?id=&amp;quot; + __ipv6wwwtest_id;&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_ipv4relImg&amp;quot;).src = &amp;quot;//ipv4&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/ipv4.gif?rel=1&amp;amp;id=&amp;quot; + __ipv6wwwtest_id;&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_ipv6Img&amp;quot;).src = &amp;quot;http://ipv6&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/ipv6.gif?id=&amp;quot; + __ipv6wwwtest_id;&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_ipv6and4Img&amp;quot;).src = &amp;quot;http://ipv6and4&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/ipv6and4.gif?id=&amp;quot; + __ipv6wwwtest_id;&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_ipv6bigImg&amp;quot;).src = &amp;quot;http://ipv6&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/ipv6big.gif?id=&amp;quot; + __ipv6wwwtest_id;&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
        function __ipv6wwwtest_sendResults(stage) {&lt;br /&gt;
                document.getElementById(&amp;quot;__ipv6wwwtest_resultsImg&amp;quot;).src = &amp;quot;http://results&amp;quot; + __ipv6wwwtest_hostSuffix +&amp;quot;/results.gif?id=&amp;quot; + __ipv6wwwtest_id + &amp;quot;&amp;amp;stage=&amp;quot; + stage + &amp;quot;&amp;amp;timeout=&amp;quot; + __ipv6wwwtest_timeoutMsec + &amp;quot;&amp;amp;stop_at_timeout=&amp;quot; + __ipv6wwwtest_stopAtTimeout + &amp;quot;&amp;amp;ipv4=&amp;quot; + __ipv6wwwtest_getLoadTime(__ipv6wwwtest_ipv4LoadTime) + &amp;quot;&amp;amp;ipv6=&amp;quot; + __ipv6wwwtest_getLoadTime(__ipv6wwwtest_ipv6LoadTime) + &amp;quot;&amp;amp;ipv6and4=&amp;quot; + __ipv6wwwtest_getLoadTime(__ipv6wwwtest_ipv6and4LoadTime) + &amp;quot;&amp;amp;ipv6big=&amp;quot; + __ipv6wwwtest_getLoadTime(__ipv6wwwtest_ipv6bigLoadTime) +&amp;quot;&amp;amp;ipv4rel=&amp;quot;+ __ipv6wwwtest_getLoadTime(__ipv6wwwtest_ipv4relLoadTime) + &amp;quot;&amp;amp;rate=&amp;quot; + __ipv6wwwtest_factor;&lt;br /&gt;
        };&lt;br /&gt;
 &lt;br /&gt;
        function __ipv6wwwtest_getLoadTime(item) {&lt;br /&gt;
                if (item == false) {&lt;br /&gt;
                        return &amp;quot;NaN&amp;quot;;&lt;br /&gt;
                } else {&lt;br /&gt;
                        return (item.getTime() - __ipv6wwwtest_pageLoadTime.getTime());&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
        function __ipv6wwwtest_checkFinished() {&lt;br /&gt;
                if ( (! __ipv6wwwtest_ipv6LoadTime) || (! __ipv6wwwtest_ipv4LoadTime) || (! __ipv6wwwtest_ipv6and4LoadTime) || (! __ipv6wwwtest_ipv6bigLoadTime) || (! __ipv6wwwtest_getLoadTime)) {&lt;br /&gt;
                        if (!__ipv6wwwtest_timeout) {&lt;br /&gt;
                                __ipv6wwwtest_timeout = window.setTimeout(&amp;#039;__ipv6wwwtest_sendFinalResults()&amp;#039;,__ipv6wwwtest_timeoutMsec);&lt;br /&gt;
                        }&lt;br /&gt;
                        __ipv6wwwtest_sendResults(&amp;#039;partial&amp;#039;);&lt;br /&gt;
                } else {&lt;br /&gt;
                        __ipv6wwwtest_sendFinalResults();&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
 &lt;br /&gt;
        function __ipv6wwwtest_sendFinalResults() {&lt;br /&gt;
                if (__ipv6wwwtest_done==0) {&lt;br /&gt;
                  if (__ipv6wwwtest_timeout) {&lt;br /&gt;
                          window.clearTimeout(__ipv6wwwtest_timeout);&lt;br /&gt;
                  }&lt;br /&gt;
                  __ipv6wwwtest_sendResults(&amp;#039;final&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
                  if (__ipv6wwwtest_stopAtTimeout) {&lt;br /&gt;
                          document.getElementById(&amp;quot;__ipv6wwwtest_ipv4Img&amp;quot;).src = &amp;quot;&amp;quot;;&lt;br /&gt;
                          document.getElementById(&amp;quot;__ipv6wwwtest_ipv4relImg&amp;quot;).src = &amp;quot;&amp;quot;;&lt;br /&gt;
                          document.getElementById(&amp;quot;__ipv6wwwtest_ipv6Img&amp;quot;).src = &amp;quot;&amp;quot;;&lt;br /&gt;
                          document.getElementById(&amp;quot;__ipv6wwwtest_ipv6and4Img&amp;quot;).src = &amp;quot;&amp;quot;;&lt;br /&gt;
                          document.getElementById(&amp;quot;__ipv6wwwtest_ipv6bigImg&amp;quot;).src = &amp;quot;&amp;quot;;&lt;br /&gt;
                  }&lt;br /&gt;
                }&lt;br /&gt;
                __ipv6wwwtest_done=1;&lt;br /&gt;
        }&lt;br /&gt;
  addOnloadHook(function() {&lt;br /&gt;
        v6sub=document.getElementById(&amp;quot;footer&amp;quot;) || document.getElementById( &amp;quot;foot-icons&amp;quot; );&lt;br /&gt;
        if( !v6sub ) return;&lt;br /&gt;
        v6sub.innerHTML=v6sub.innerHTML+&amp;#039;&amp;lt;div style=&amp;quot;visibility: hidden;&amp;quot;&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_ipv4Img&amp;quot; onload=&amp;quot;__ipv6wwwtest_ipv4LoadTime = new Date(); __ipv6wwwtest_checkFinished();&amp;quot; /&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_ipv4relImg&amp;quot; onload=&amp;quot;__ipv6wwwtest_ipv4relLoadTime = new Date(); __ipv6wwwtest_checkFinished();&amp;quot; /&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_ipv6and4Img&amp;quot; onload=&amp;quot;__ipv6wwwtest_ipv6and4LoadTime = new Date(); __ipv6wwwtest_checkFinished();&amp;quot; /&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_ipv6Img&amp;quot; onload=&amp;quot;__ipv6wwwtest_ipv6LoadTime = new Date(); __ipv6wwwtest_checkFinished();&amp;quot; /&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_ipv6bigImg&amp;quot; onload=&amp;quot;__ipv6wwwtest_ipv6bigLoadTime = new Date(); __ipv6wwwtest_checkFinished();&amp;quot; /&amp;gt; &amp;lt;img height=&amp;quot;1&amp;quot; width=&amp;quot;1&amp;quot; src=&amp;quot;&amp;quot; id=&amp;quot;__ipv6wwwtest_resultsImg&amp;quot; /&amp;gt; &amp;lt;/div&amp;gt;&amp;#039;;&lt;br /&gt;
       if (document.getElementById(&amp;quot;__ipv6wwwtest_ipv4Img&amp;quot;) &amp;amp;&amp;amp; document.getElementById(&amp;quot;__ipv6wwwtest_ipv6Img&amp;quot;) &amp;amp;&amp;amp; document.getElementById(&amp;quot;__ipv6wwwtest_ipv6and4Img&amp;quot;) &amp;amp;&amp;amp; document.getElementById(&amp;quot;__ipv6wwwtest_ipv6bigImg&amp;quot;)) {&lt;br /&gt;
         __ipv6wwwtest_startTest();&lt;br /&gt;
       }&lt;br /&gt;
   });&lt;/div&gt;</summary>
		<author><name>Dan9186</name></author>
	</entry>
</feed>