The browser extension that detects <img>
tags that cause Layout Shift
- Access page you want to measure layout shift by
<img>
- Open console tab of devtools
- Click the icon of this extension
- The report is outputed to console tab
- require-intrinsic-size: require image's intrinsic size as attributes or properties.
- require-aspect-ratio-hint: require aspect ratio hint
- no-mismatch-of-aspect-ratio-hint: disallow the
width
/height
attributes that do not match the image's original aspect ratio - no-mismatch-of-apparent-size: disallow
<img>
elements whose apparent size is different from the image's original aspect ratio - no-defective-attribute: disallow
<img>
tags with only onewidth
/height
attributes - no-defective-property: disallow
<img>
tags with only onewidth
/height
properties
- Open https://img-layout-shift-detector.netlify.app
- Open console tab of devtools
- The report is outputed to console tab (If you don't see the table, please reload page)
$ yarn install
$ yarn run start:chromium:dev
$ # Wait for passing CI...
$ git switch master
$ git pull
$ # Update version field
$ vim manifest.json
$ git add manifest.json
$ yarn version
$ # Publish
$ git push --follow-tags
$ open https://chrome.google.com/webstore/devconsole