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 Treehouse Club: JavaScript Car Sounds HTML Comments and JavaScript

When I edit my code, the changes don't show up in the preview. What should i do?

This has been a problem the whole time for me.

Hans Kristian Engmark
Hans Kristian Engmark
1,633 Points
  1. Use Chrome
  2. After you've hit the preview button, you must ALSO refresh the link/url in the new window manually.

save your changes and refresh the browser page.

6 Answers

rydavim
rydavim
18,814 Points

If you run into this problem, there are a couple steps you can try to solve it.

  1. Refresh your browser.
  2. Save your workspace, then close out of it completely and reopen it.
  3. Clear your browser's cache. This is usually under something like a 'History' menu.

If none of that works for you, you can send an email to Treehouse support directly at help@teamtreehouse.com to request assistance.

Rob Barone
Rob Barone
1,222 Points

Yes, after you make any changes in your Workspace, quickly save it (ctrl-s or cmd-s).. and then right click on the preview web browser, and click RELOAD.. DuhDah...there's the changes

Carl Martin
Carl Martin
12,088 Points

I've also found it helpful to reset my cookies. In Safari on a Mac go to Safari -> Preferences -> Privacy -> Delete Website Data.

This should be similar to other browsers as well.

Joseph Gordon
Joseph Gordon
6,986 Points

If you are using Chrome like me just make sure you save your work. Once saved preview the web browser then use a hard refresh ctrl+f5.

Mike Little
Mike Little
1,607 Points

I tried closing the window and it didn't work, just opens without the changes, I hit F5 for refresh and it did the trick!!

Ctrl+S, click browser "Preview", Press F5

Adam Fournace
PLUS
Adam Fournace
Courses Plus Student 4,115 Points

Using a extension like Cache Killer on Chrome helps with this problem in online IDE's.