We’ve been delighted with the response to our new online radio player. Lots of sites have embedded our player on their pages, and it’s been a really successful rollout.
Late on Friday however, we got wind that one of the users of our embedded player had withdrawn it from their site because it caused an increase in their page load time. Now we should point out here that we’re not particularly special in this regard – the same problem affects all manner of webpage widget providers who employ the same mechanism to deliver their content. However, we at Radio Tuna weren’t happy that we had lost even one of our users as a result of this slow loading problem, so we decided to find a way around it.
What we’ve come up with was not simple to develop (if it was, there’d be a well-known fix out there already) and it took a very intensive Friday-night-thru-Saturday-morning coding session to create, but we do like a challenge at Tuna Towers and we’re pleased to say that within 24 hours we’d come up with a very nifty solution…
So What Causes the Problem?
So placing a script tag in the body of someone else’s content causes a delay in overall page load time of their page. For most users the delay is perfectly within expectations and not a problem, but others may well find the delay unacceptable.
As before the code is created in two tags, an anchor tag and a script tag. Although placed on a single line for convenience, it is perfectly safe to split up the anchor tag and script tag and move the script into the head of your webpage if you don’t like mixing content and logic together. Of course, because the anchor tag serves as a placeholder for the player, this must remain in the correct position in your web page.
If you have any questions or comments about the new embed code, please let us know.