49

Today I found the reason for one of the stupidest bugs I had in like.. ever!

Me and a fellow student are currently porting the infoscreen of our university to HTML.
One of the functions of this screen is showing payed advertising and I was working on loading and displaying the images of our advertisment partners.

I had the whole system in place, and the images loaded.. but they wouldn't show. Upon inspection I saw they were displayed but with a size of 0x0 px.

I spend hours searching the web for javascript bugs, double checking my css file and everything you could imagine. I even asked my CS professor for help and he didn't find the cause for this strange issue I had.

..and then I saw it. A little note in Chromes inspector saying the image style would be set by my user-agent. Despite not trusting that information, I closely inspected my browser.

And then it dawned on me.. I would turn my adblocker off and lo and behold.. it worked!

I then, after celebrating my triumph, changed the tag of the img element from 'advert' to something else…

Comments
  • 11
    This is probably the most awesome debug in history
  • 4
    Had a similar experience where some social media icons would disappear.

    Also caused by adblock.

    I actually removed adblock, spent way to much time troubleshooting it.
  • 3
    Same thing happened to me few years ago.
    I named an element "ad" and it took me about a month to realize at night while sleeping.
Add Comment