Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Using jQuery Plugins Add a Sticky Navigation Bar Adding Sticky Navigation

Vic Mercier
Vic Mercier
3,276 Points

Are all plugins able to use the same jQuery version?

I am wondering that because if I use two plugins for example and my first plugin might not use the same version as the second.

Matthew Long
Matthew Long
28,407 Points

jQuery isn't fully backwards compatible. It does a nice job overall but sometimes you will run into bugs if a plugin was made with an old version in mind. This is true about almost any software and programming language. Often times, depending on the popularity of the plugin, the creators will update it accordingly. Check their docs for this. Other times you might have to do the debugging on your own.

1 Answer

Steven Parker
Steven Parker
231,248 Points

The Plug-in provide will generally indicate what version dependencies the plug-in has in the documentation. With a little luck, any that you wish to use will at least have some overlap in the version ranges they require.

Vic Mercier
Vic Mercier
3,276 Points

What do you mean by overlap?

Steven Parker
Steven Parker
231,248 Points

Let's say one plug-in is documented to work with versions 3.2 - 3.7 and another works with 3.5 - 3.9. The :"overlap" would be versions 3.5, 3.6, and 3.7. Any of those versions would work with both plug-ins.