Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS jQuery Basics (2014) Creating a Mobile Drop Down Menu Perfect

"Resource interpreted as Stylesheet" error makes screen flash

I'm on jQuery basics, creating a mobile drop down menu. The video: https://teamtreehouse.com/library/jquery-basics/creating-a-mobile-drop-down-menu/perfect

First, my drop down menu isn't even showing up. For troubleshooting I open the last Workspace since it would have an accurate and working version of the project. I didn't touch the code, and the problem occurs.

I ran Ctrl+Shift+J to see the console and I get this message flashing repeatedly:

Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://port-80-6hrl7lqa0p.treehouse-app.com/css/style.css". index.html:4

Line for of index.html is <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">

Here's a link to the code pen: http://codepen.io/pandathorax/pen/gpRrjX

I can't move past this in the tutorials, so any fixes would be greatly appreciated.

After showing this issue to my instructor, even he could not figure out the issue.

2 Answers

Thanks, Mark. While this isn't 100% verified, it seems to have been multiple syntax errors in my disorganized stylesheet. Odd since it would pass w3c' validator. A mystery still, but I paid a Fiverr to straighten it out for me. Thanks again for responding. Hopefully it will answer someone else's similar error.

Mark Magee
Mark Magee
11,489 Points

Put the window.location inside the button click, I think this is causing the page to keep redirecting back to the same page.

$button.click(function(){ //Go to select's location window.location = $select.val(); });