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

HTML Treehouse Club: HTML Publish a Story Introduction to Workspaces

Preview did not change based on code

I changed my name in the code. And I'm 100% sure i did it right. I hit command s. I also went to file -> save ... and when i'd go to preview, it would not say my name.

Petrus Supusepa
Petrus Supusepa
6,626 Points
  1. Save your change (Command + S on Mac / CTRL + S on Windows) or you can click File --> Save on your workspace area.
  2. Click Preview button upright on your workspace area.
  3. Refresh your browser or hit F5 key on Windows.

Thank you.

5 Answers

Julie Myers
Julie Myers
7,627 Points

Refresh your browser.

Daryl Carr
Daryl Carr
18,318 Points

Hey. Three things to try;

  1. Make sure your saving your work on workspace and then hitting the preview.
  2. Refresh the browser after saving your changes if you have already saved the work on workspace.
  3. If you have done this and the issue still persists, go into your history and delete your recent cache files. Then refresh the browser.

Hope this helps

Daryl

I tried everything suggested to get my system to preview the changes. I saved and refresh several times and nothing worked. I then clicked on Fork Workspace (the icon between the preview and snapshot) it finally worked. Does anyone know the meaning of Fork? It also brought up some type of Console window with the line "treehouse:~/workspace$. Does anyone know the meaning of that?

Andrei Badea
Andrei Badea
4,027 Points

Hi everyone,

I have just solved the problem after trying to find the answer for about 3 hours. Right, so the problem isn't with treehouse but with the browser itself and when I say browser I mean Google Chrome. The problem is that Google Chrome has in its default settings, the setting of prefetching resources to load pages more quickly. To solve this press: Command + Y or Ctrl + Y (I'm guessing here as I am a Mac user), it should get you to history -> you should see Settings on the left, go to settings -> go all the way down to advanced settings -> click advanced settings -> scroll down to privacy -> un-tick 'Use a prediction service to help complete searches and URLs typed in the address bar or the app launcher search box' and 'Prefetch resources to load pages more quickly' and -> Problem solved.

Now, every other answer here is completely valid, after you change code you should SAVE (Command + S) then refresh (Command + R).

I hope this helps,

Enjoy coding!!