How to use the inline-critical/src/css.extractCss function in inline-critical

To help you get started, we’ve selected a few inline-critical examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github addyosmani / critical / src / core.js View on Github external
function() {
      if (!this._uncritical) {
        this._uncritical = extractCss(orig, diff);
      }

      return this._uncritical;
    };

inline-critical

Inline critical-path css and load the existing stylesheets asynchronously

MIT
Latest version published 30 days ago

Package Health Score

78 / 100
Full package analysis

Popular inline-critical functions