Skip to content Skip to sidebar Skip to footer

Twitter Button Causing Js Error In Ie8 (expected Identifier)

I included a Twitter button on my page, using the code from https://about.twitter.com/resources/buttons A very basic implementation looks like this Is runs perfectly in all brows

Solution 1:

According to Twitter widgets.js throws JavaScript error "Expected identifier" on IE8, Twitter stopped supporting IE8 in January 2015.

My "solution" was therefore to use conditional comments <!--[if gt IE 8]><!--> TWITTER CODE HERE <!--<![endif]--> to disable the tweet button in IE8 and lower.

Post a Comment for "Twitter Button Causing Js Error In Ie8 (expected Identifier)"