Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Force Safari to reload user stylesheet Web Browsers
Although Safari offers users the option to create user style sheets (Preferences -> Advanced tab), it's quite annoying that it doesn't update any changes to the CSS while it's running. You're supposed to quit and relaunch Safari instead. However, you can force Safari to reload your CSS by using the @import rule. Simply add the following line to your user.css file:
@import: url("file://Path/To/Your/Stylesheet.css");
(You'll need to replace the above file:// bit with the actual path to your stylesheet.) Then restart Safari (one last time). From now on, all your changes will appear immediately after page reload -- without a relaunch.
    •    
  • Currently 2.67 / 5
  You rated: 1 / 5 (12 votes cast)
 
[16,073 views]  

Force Safari to reload user stylesheet | 5 comments | Create New Account
Click here to return to the 'Force Safari to reload user stylesheet' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Force Safari to reload user stylesheet
Authored by: boxcarl on Jul 17, '06 08:39:57AM

Does that have an effect on page load time? It seems like that by forcing Safari to not cache your stylesheet you are going to end up wasting time reloading it for every page you visit instead of letting Safari just keep all the commands in active memory.



[ Reply to This | # ]
Force Safari to reload user stylesheet
Authored by: r0n on Jul 17, '06 12:59:45PM

I didn't notice any slowdowns on my slow-enough G4/350 ;). However you might just delete the @import line after your CSS tweaks are done.



[ Reply to This | # ]
Force Safari to reload user stylesheet
Authored by: qwerty denzel on Jul 18, '06 04:06:57AM

I just empty my Cache; that seems to work fine.



[ Reply to This | # ]
Force Safari to reload user stylesheet
Authored by: jgl24 on Jul 27, '06 03:49:50PM

Does anyone know where we could find some nice user stylesheets?



[ Reply to This | # ]
Force Safari to reload user stylesheet
Authored by: magnamous on Aug 04, '06 07:53:23PM

I just load a different sheet, then go back to the first one. I think setting it to "none" might work, too.



[ Reply to This | # ]