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

jQuery bug!!

I have a really annoying bug with my menu tab, jQuery hover effect.

Here is the link ( http://pavilioncreative.com )

If you refresh your page and quickly place your mouse curser over the menu tab and then move out the jQuery animation will work back to front.

If you click on the menu tab and then click of the menu tab the same thing will happen again as the jQuery animation will work back to front!

Can any one help with this ? its really frustrating!!

Thanks

1 Answer

Hi Adam,

I'm not sure if this is the cause of your problem, but it's best practice load your JavaScript files at the very end of your document, immediately before the closing </body> tag. Make sure you load the jQuery library first, though, before any other script that relies on it, or you will end up with errors.