Critical Versions Save

Extract & Inline Critical-path CSS in HTML pages

v2.0.0

3 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

v1.3.10

3 years ago
  • CI: switch to actions/checkout@v2 b9c17ef

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

v2.0.0-27

3 years ago

v2.0.0-26

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

v2.0.0-25

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

v2.0.0-24

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

v1.3.9

4 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

v1.3.8

4 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

v2.0.0-23

4 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

v1.3.7

4 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