Using the latest widget code? You Should be if not!

June 26, 2014 whos.amung.us
We've had a number of different widget codes over the years and as such we like to make sure our long time users update their codes to ensure they are getting the best performance possible from the widgets on their site.

About 3 years ago we converted the Javascript code from the traditional synchronous (sync) style to the newer asynchronous (async) style. The async version has the advantage of never blocking loading of page elements on your site, which would have been possible with the sync version.

Although the async code has been available for many years we are still seeing lots of sites using the sync version, so we'd like to provide this message to assist users in determining what sort of code they are running.

If the whos.amung.us widget code installed on your site looks something like the following code you are using the old sync version and we recommend you convert to the async version. Note: the code below is an example only, it shows a dummy site identifier (123456789012) and is for the small widget, the other types have slightly different formats.

<script type="text/javascript" src="http://widgets.amung.us/small.js"></script>
<script type="text/javascript">WAU_small('123456789012')</script>


If your code looks something like the following (again, this is an example, it will vary from widget style to widget style) then you are using our async code and all is good :)

<script id="_wau3b8">var _wau = _wau || []; _wau.push(["small", "123456789012", "3b8"]);
(function() {var s=document.createElement("script"); s.async=true;
s.src="http://widgets.amung.us/small.js";
document.getElementsByTagName("head")[0].appendChild(s);
})();</script>



We'd be happy to help you convert the code on your site to the async version if you are still using the sync version, feel free to contact us.

If you need a new widget code, just grab one from the showcase to ensure you have the latest code!

RECENT POSTS