A melhor maneira de adicionar scripts de mídia social e quaisquer outros scripts externos
var scripts = { ‘facebook-jssdk’: ‘//connect.facebook.net/en_US/all.js#xfbml=1’, ‘googleplus’ : ‘https://apis.google.com/js/plusone.js’, ‘twitter-wjs’ : ‘//platform.twitter.com/widgets.js’, ‘analytics’ : (‘https:’==location.protocol?’//ssl’:’//www’) + ‘.google-analytics.com/ga.js’ }, script, _gaq=[[‘_setAccount’,’UA-XXXXX-X’],[‘_trackPageview’]]; for (var id in scripts) { script = document.createElement(‘script’); script.src …
Continuar lendo