News for hackers. Stuff that matters.
Re:EA “Gives Away” 1000s Of Free Games Due To No Server-Side... by minimaxir on Sunday October 14, 2012 @04:05PM (#4652445)
I figured out the error (I was wrong, it was indeed my code) and fixed it. No more flickering. :)
Re:EA “Gives Away” 1000s Of Free Games Due To No Server-Side... by spicyj on Sunday October 14, 2012 @04:08PM (#4652465)
Out of curiosity, what was the bug?
Re:EA “Gives Away” 1000s Of Free Games Due To No Server-Side... by minimaxir on Sunday October 14, 2012 @04:30PM (#4652550)
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.

Re:EA “Gives Away” 1000s Of Free Games Due To No Server-Side... by spicyj on Sunday October 14, 2012 @04:36PM (#4652564)
Gotcha. :)