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

CSS

Workspace not updating changes in preview

When I make simple changes in my workspace, the preview does not reflect it. It is still showing "Nick Pettit" instead of my own name and color changes.

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,863 Points

Are you refreshing the browser's preview page after saving the changes? You browser will not auto-update after a change saved in Workspaces. You'll need to click refresh.

:)

Hi Jason. Thanks. That solved the issue for me. However, I was generating a new tab each time I previewed the workspace and therefore didn't expect to have to refresh the page after it generated a new one. That is not intuitive and was a frustration, slowing down my progress. Is that how it is supposed to work, or is it a bug? Cheers!

Jason Anders
Jason Anders
Treehouse Moderator 145,863 Points

Hi Richard Kerr.

If that is happening, I would guess that it has something to do with the cache in your browser. There are many times I've heard in the forum of students having to manually clear the cache in order to see changes.

I'm not sure if this has happened to me, as I either close out the tab when I'm done previewing (because I know a new one opens up when I preview again). Or, if I'm previewing many times and in a short period of time, I just leave the tab open, but instead of clicking "preview" after saving, I just switch back to the tab and refresh.

You've got to love that cache! :)

try saving your document before you do the preview. the keyboard shortcut is ctrl+s

Hi Evan,

Thanks, but I have tried doing that. Any other suggestions?

Thanks!

have you tried to view your preview in multiple browsers?

I have had issues with the workspace editor too. Make sure you wait for the page to completely finish loading before you try to compile/preview you code.