Is it possible to access web pages without CSS text?

I want to parse CSS files loaded by an HTML page, but I don't want AJAX calls to reload the loaded CSS files. Is there a way to access pages without CSS text?

For example, it will allow access to -moz- * declarations in Safari.

+3
source share
4 answers

You can load your CSS using AJAX.

  • Upload your CSS
  • CSS parsing
  • Add CSS to the DOM (in whole or in part)

This can be done using LazyLoad :

"LazyLoad - ( 1,541 ) ), JavaScript , JavaScript CSS ".

+5
+2

AJAX? , .

+1

:

AJAX? , .

:

AJAX , HTTP- , CSS, 304. ,

... , ? :

/* here is your normal css: styles.css */
body {
    color: black;    
}

/* and you want to switch to red text instead... */

/* dynamically add this on page load */
body {
    color: red !important;
}
0

Source: https://habr.com/ru/post/1725899/


All Articles