jQuery and twitter widget conflict


#1

I have a laravel website that uses bower and grunt to manage packages. I created a widget and tried to embed the widget on the site, but I have an javascript error int the console

Uncaught TypeError: Cannot read property ‘tl_id-of-the-widget_1’ of undefined

The strange thing is when I remove jQuery 2.1.4 from the code the widget works fine. I tried different versions on jquery same issue


#2

This seems to imply that __twttr.callbacks is undefined. Do you know if you’re making any modifications to the window.__twttr object?

BTW, I don’t think this is strictly a jQuery/widgets.js conflict. Here’s an example of a page with jQuery 2.1.4 and a timeline widgets being rendered by widgets.js. Works fine.


#3