Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sorry to comment off of the content of the post, but when I load the page the Like button flickers shown/not shown a bunch of times causing annoying visual jitter. I'm on Chrome 22 if that is relevant.


I figured out the error (I was wrong, it was indeed my code) and fixed it. No more flickering. :)


Out of curiosity, what was the bug?


On my main page, I use AJAX to load the Share buttons when the user mouses-over the post itself, so that they aren't loaded all at once. Specifically, it loads the HTML, then runs it through each social service's HTML parser to render the buttons.

On individual blog posts, the buttons did not load because the DOM element is not present for that template. However, the parser still ran on mouse-over, which is what caused the flickering. So I just disabled the parser when the user is on an individual blog post.


Gotcha. :)


From what I can tell, that's on Facebook's end, as all the Facebook plugins seems to flicker occasionally as well. I'll look into it, although there's nothing unusual with my front-end code that should be causing unusual behavior...maybe CloudFlare caching issues?

Thanks for letting me know btw. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: