Hacker News new | ask | show | jobs
by teyc 5724 days ago
One of my pet peeves is that Ads don't respect the back button. Sometimes, I hit the back button on Stack Overflow because the ad was interesting, but it's been rotated away.
2 comments

Shouldn't this be solved by the browser? The back button behavior should be no different from if I were to switch from a new tab back to its parent tab.
No. He's talking about reading a page and having 'Ad Blindness' while he's focused on the content. Once he gets to a link, he'll click on it, and at that same moment, see an Ad that looks interesting (because he is no longer focused on the content). After the new page loads, clicking on the back button doesn't help because the original page will reload with all the ad spaces regenerated with new random ads.

Anyone need an idea for a side-project startup? This happens to me all the time and I absolutely hate it.

This is a big annoyance of mine too. Reddit actually seems to have solved this problem, but I'm not sure how.
I think they just generate code along with the page that uniquely selects an ad. Most sites just include some random javascript that asks the ad server to put an ad on the page.

Incidentally, while looking at the code Reddit sends, I noticed this gem:

    <script type="text/javascript">
    $(function() { 
        var ad = $("#ad-frame"); 
        if(ad.height() == 0 || ad.width() == 0) {
            $(".footer").append(
            "<img alt='' src='http://pixel.reddit.com/pixel/of_defenestration.png?hash=0e31bc319d5b5882b0cddf147f4ce1da5ac9c731&id=adblock&random=" + Math.random()*10000000000000000 + "'/>");
        } 
    });
    </script>
Of course, pixel.reddit.com is adblocked also, so this has no effect...