NOSCRIPT for nerds. Stuff that disappears.
Thursday, 13. March 2008, 03:18:28
Sure enough, some text is missing, as re-loading with JavaScript disabled will show. The disappearing content occurs right after an ad script (URL will not unlikely die soon. Ads aren't exactly Cool URIs, but we already knew that..). Read this closely:
document.write('<script src=\"http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rb&c=22&pli=319831&pi=0&w=336&h=280&ncu=$$http://ad.doubleclick.net/click%3Bh=v8/3682/3/0/%2a/b%3B155329471%3B0-0%3B3%3B13358361%3B255-0/0%3B24413359/24431212/1%3B%3B%7Esscs%3D%3f$$&ord=4781511\"><\/script>');document.write('\n<noscript>\n<a href=\"http://ad.doubleclick.net/click%3Bh=v8/3682/3/0/%2a/b%3B155329471%3B0-0%3B3%3B13358361%3B255-0/0%3B24413359/24431212/1%3B%3B%7Esscs%3D%3fhttp%3A//bs.serving-sys.com/BurstingPipe/BannerRedirect.asp%3FFlightID%3D319831%26Page%3D%26PluID%3D0%26Pos%3D4723\" target=\"_blank\"><img src=\"http://bs.serving-sys.com/BurstingPipe/BannerSource.asp?FlightID=319831&Page=&PluID=0&Pos=4723\" border=0 width=336 height=280></a>');First time I saw an ad script do
document.write('<noscript><img src="..."></noscript>') I laughed. Certainly a remarkably braindead way to include your fallback contents. But Slashdot's ads take it a step further: they use document.write to insert a NOSCRIPT tag but do not close it, hence hiding random amounts of content until the next NOSCRIPT close tag appears in the source! And it's not an Opera problem, it occurs randomly when you get the ads that come with the broken script, and happens in all browsers. In other words, Slashdot has finally proven that GUI browsers are unreliable and that everyone simply should telnet to port 80. Great news for nerds.
Is Opera going to make a text browser like Lynx
By Turin, # 13. March 2008, 04:09:27
By HeroreV, # 13. March 2008, 04:49:44
I agree with you that ads should be loaded separately, possibly via objects, but iframes? I'm looking forward to the end of iframes, haha. If all ads were inserted via iframes then it would actually be cool in one aspect...we could write a simple script to remove all iframes from every page upon loading and get ride of all ads, haha.
By kyleabaker, # 13. March 2008, 06:36:51
Whats the point of a noscript tag written by javascript? Nothing will render if Javascript is turned off this way anyway.
Looks like there need to be more decent ad scripts, as the one shown doesn't know how to code for a browser
By shoust, # 13. March 2008, 10:37:26
By Robin_reala, # 13. March 2008, 11:51:12
By Waldo, # 13. March 2008, 11:51:49
By scottj, # 13. March 2008, 20:32:12
By kyleabaker, # 13. March 2008, 23:06:24
Well, the answer is obvious...
Oh, and Slashdot: I know you think Digg is cool, but isn't including both Prototype and YUI a bit.. over the top??
By hallvors, # 14. March 2008, 22:10:12
By friedcell, # 15. March 2008, 17:39:58
Yes, it's a recipe for disaster if you inline those scripts, not to mention the fact that it stops rendering *your* content until the ad has loaded.
We also use JS-based ad-injection, but load them in seperate 'containers' *after* out content and use some additional JS to move them to their right position
By crisp, # 16. March 2008, 01:27:26
I thought you might enjoy the comment on the following post as it's very much the same as this situation, lol:
It's in the second post, just search for this:
http://www.ozoneasylum.com/28912
By kyleabaker, # 28. April 2008, 00:18:08