Skip to content

Commit 16c5e08

Browse files
committed
deprecated notice
1 parent 15b3e14 commit 16c5e08

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,7 @@
22

33
**This widget is deprecated and may not work in newer browsers. For an improved widget, see [Style.Tools](https://github.com/style-tools/browser-widget).**
44

5-
Visit https://style.tools/ to install the new widget or copy the folowing widget code in the browser bookmarks link field or console.
6-
7-
```javascript
8-
!function(r,a,k,l,f,g,b,m){function n(c,b,d){a.open();b&&(r.onmessage=b);d&&a.addEventListener("securitypolicyviolation",d);a.write(c);a.close()}f="https://style.tools/";g="Style.Tools";var c=a.createElement("script");c.src=f+"x.js";c.onerror=function(){function p(d){if(c=d?d.violatedDirective:0){if("script-src"==c||m)return;m=1;b&&l(b)}if(!q){var h=f+"#"+a.location;a.getElementById("e").innerHTML='<h2 style="color:red;">'+g+(c?' blocked by CSP <font color="blue">'+c+"</font>":" failed to load")+
9-
'.</h2><h3>Redirecting <a href="'+h+'">'+h+"</a>...</h3>";b=k(function(){a.location.href=h},3E3)}}var q;n("<h2>Loading "+g+" via Service Worker...</h2><iframe src="+f+'go height=50></iframe><p id="e"></p>',function(a){q=1;b&&l(b);n("<script>"+a.data+"\x3c/script>")},p);b=k(p,2E3)};a.head.appendChild(c)}(window,document,setTimeout,clearTimeout);
10-
```
11-
12-
The Style.Tools editor works best when used from the bookmarks bar. Fetch requests will then be local without the need for a CORS proxy.
13-
14-
Style.Tools is like Dev Tools for CSS optimization. It looks similar and the startup time is instant.
15-
16-
Style.Tools provides two Critical CSS extraction solutions:
17-
18-
1) a browser widget (the old widget but improved)
19-
2) a professional quality Critical CSS extractor based on PostCSS and Penthouse.js.
20-
21-
More info: https://github.com/style-tools/browser-widget
22-
23-
## About the old widget
5+
## About
246

257
A simple browser widget to extract Critical CSS and Full CSS from a page that can be used via the browser console.
268

0 commit comments

Comments
 (0)