critical

Extract & Inline Critical-path CSS in HTML pages

APACHE-2.0 License

Downloads
106.2K
Stars
10K
Committers
36

Bot releases are visible (Hide)

critical -

Published by bezoerb over 3 years ago

Maintenance

  • Bump dependencies 26e8b7c
  • Bump ws from 6.2.1 to 6.2.2 (#500) 712122d
  • Adds node 16 to ci matrix 143c398
  • Removes link to changelog c2b14d9
  • Fix config test fdd5705
  • Fix linter af99878
  • Bump inline-critical && fix tests f058e45

Bugfixes

  • Support web pages that use media=print for async CSS (#487) 03d0455

Breaking

  • Removed minify option 86aaa4a

https://github.com/addyosmani/critical/compare/v3.1.0...v4.0.0

critical -

Published by bezoerb over 3 years ago

  • npm audit fix d4599e0
  • Adds support for inline styles & data-uris (#498) 3ed099c
  • Bump hosted-git-info from 2.8.8 to 2.8.9 (#493) 1fb431b

https://github.com/addyosmani/critical/compare/v3.0.1...v3.1.0

critical -

Published by bezoerb over 3 years ago

  • Bump dependencies (#492) f3bd111
  • Fix: dedupe stylesheet hrefs found in document b7d2e27

https://github.com/addyosmani/critical/compare/v3.0.0...v3.0.1

critical -

Published by bezoerb over 3 years ago

  • Bump dependencies (#483) 6b3e957
  • Slice cssString in debug output 719cc52

BREAKING

  • Drop support for node versions 11 & 13

https://github.com/addyosmani/critical/compare/v2.0.6...v3.0.0

critical -

Published by bezoerb almost 4 years ago

  • Chore/bump deps (#472) 0619caa
  • Do not mutate request.method when checking file exists (#470) 73b2a3b

https://github.com/addyosmani/critical/compare/v2.0.5...v2.0.6

critical -

Published by bezoerb about 4 years ago

  • Downgrade postcss for backwards compatibility reasons 414ff79
  • Update test.yml (#466) f69c259
  • Update dependencies and regenerate package-lock.json (#467) 9730b24

https://github.com/addyosmani/critical/compare/v2.0.4...v2.0.5

critical -

Published by bezoerb about 4 years ago

  • Bump dependencies f0318ff
  • Removed 'dest' key being used in examples (#461) f5b551f

https://github.com/addyosmani/critical/compare/v2.0.3...v2.0.4

critical -

Published by bezoerb about 4 years ago

  • Adds dimensions support to cli.js (#457) f67ca79

https://github.com/addyosmani/critical/compare/v2.0.2...v2.0.3

critical -

Published by bezoerb about 4 years ago

  • Bump dependencies 8d7f294
  • Adds request option to Readme (#460) dd02ad0
  • Bump elliptic from 6.5.2 to 6.5.3 (#459) 11c514c
  • Bump lodash from 4.17.15 to 4.17.19 (#458) 31c8454
  • Bump dependencies e6d4752
  • Update test.yml f14755d
  • Remove timeout option from example configuration (#454) 973d1d9

https://github.com/addyosmani/critical/compare/v2.0.1...v2.0.2

critical -

Published by bezoerb over 4 years ago

  • Removes DeprecationWarning triggered by got 168ba12

https://github.com/addyosmani/critical/compare/v2.0.0...v2.0.1

critical - v2.0.0

Published by bezoerb over 4 years ago

Breaking

  • Drop support for Node.js < 10
  • Drop include and timeout options as they can be specified in the penthouse options.
  • Drop options styleTarget & dest in favour of target
    You can specify either a css file, an html file or an object {css: dest.css, html: dest.html} if you want to store both. We may also add an extract target here in a future release.
  • Drop options destFolder, folder and pathPrefix. We tried our best to improve the way critical auto-detects the paths to used assets in the critical css which should suit for most cases. If this doesn't work out you can use the new rebase option to either specify the location of the css & the html file like this: {from: '/styles/main.css', to: '/en/test.html'}. You can also pass a callback function to dynamically compute the path or specify a cdn for example. We utilize postcss-url for this task.

Features

  • Add the ability to specify used css files using file globs. See supported minimatch patterns.

Maintenance

  • Due to some limitations with modern css features we replaced filter-css as the library of choice for handling ignores with postcss-discard. We tried to keep things backwards compatible but you may have to change your ignore configuration.
  • Bump dependencies
  • Use Jest for testing
critical -

Published by bezoerb over 4 years ago

  • CI: switch to actions/checkout@v2 b9c17ef

https://github.com/addyosmani/critical/compare/v1.3.9...v1.3.10

critical -

Published by bezoerb over 4 years ago

critical -

Published by bezoerb over 4 years ago

  • Dependencies f93071d, e97b26e
  • Fix coveralls abdbd1f
  • Page unloaded during execution (#447) 87d2e27

https://github.com/addyosmani/critical/compare/v2.0.0-25...v2.0.0-26

critical -

Published by bezoerb over 4 years ago

  • Bump inline-critical (#444) 219cb8a
  • Bump xo e38a07e
  • Bump dependencies 2ba4f1b
  • Bump dependencies edbf95d

https://github.com/addyosmani/critical/compare/v2.0.0-24...v2.0.0-25

critical -

Published by bezoerb over 4 years ago

  • Chore/bump (#442) 78f3739
  • Bump dependencies (#441) 9b94b8a
  • CI: switch to actions/checkout@v2 6a4bbab
  • Remove execa and read-pkg-up (#423) bc987b4
  • Update dependencies. (#418) 92573f6
  • fix: sorts dimensions so we don't mess up the css order (#415) (#428) 37307a7
  • Typo fix c23f027
  • Remove unused devDependencies. (#420) 71d4172

https://github.com/addyosmani/critical/compare/v2.0.0-23...v2.0.0-24

critical -

Published by bezoerb almost 5 years ago

  • 1.x: use destructuring when importing lodash (#433) bd24282

https://github.com/addyosmani/critical/compare/v1.3.8...v1.3.9

Thanks @XhmikosR

critical -

Published by bezoerb almost 5 years ago

  • Update dependencies. (#431) b5cd07d
  • fix: backport #415 fix to 1.x (#430) 9ee2632
  • [1.x] Update dependencies. (#419) bb601a9
  • ES6-ify (#427) 4da2919

https://github.com/addyosmani/critical/compare/v1.3.7...v1.3.8

Thanks @XhmikosR

critical -

Published by bezoerb almost 5 years ago

  • package.json: Node.js >= 8.10.0 is needed. (#412) 53f8d32
  • Update dependencies (#411) 2b71361
  • Merge pull request #409 from addyosmani/deps 2b5114f
  • Update nock to v11.5.0 and regenerate package-lock.json c883591
  • Switch to GitHub Actions CI. (#403) 1008ff5
  • Update @hapi/joi to v16.1.7 23207ed
  • Update execa to v3.2.0 38ebe04
  • Bump dependencies 2777e16
  • Fix the new lint errors. 9533ad6
  • Update xo to v0.25.3. 8da6923
  • Update devDependencies. (#405) 789d8e5

https://github.com/addyosmani/critical/compare/v2.0.0-22...v2.0.0-23

Thanks to @XhmikosR

critical -

Published by bezoerb almost 5 years ago

  • Update dependencies. (#410) 96bc0eb
  • Switch to GitHub Actions CI. (#403) d46b599
  • Update dependencies. 672e680

https://github.com/addyosmani/critical/compare/v1.3.6...v1.3.7