Monday, March 12, 2012

Automatically Refresh Web Pages with CSSrefresh.js

Do you want to share?

Do you like this story?


According to their description: CSSrefresh is a small, unobstructive javascript file that monitors the CSS-files included in your webpage. As soon as you save a CSS-file, the changes are directly implemented, without having to refresh your browser.

How to use 

Adding CSSrefresh to your site takes just 5 seconds. Follow up the instructions below to add CSSrefresh on your website or blog.

Note: Make sure that you add CSS file before the javascript file. CSS files added after the javascript won’t be refreshed automatically.

<head>
   <link rel="stylesheet" type="text/css" href="css/style.css" />
   <script type="text/javascript" src="js/cssrefresh.js"></script>
</head>
 
After inserting the code, drag and drop the bookmarklet 
(from CSSrefesh page) to the bookmark bar. 
I have tested it with all the major web browsers and it works well. 

YOU MIGHT ALSO LIKE

1 komentar:

Post a Comment

Advertisements

Advertisements