This Chrome extension enables you to read and log the Web Vitals data gathered by the Shopify App Bridge. It helps in debugging performance issues and aids in optimizing Shopify apps for the best user experience.
- Automatic retrieval of Web Vitals data from Shopify App Bridge.
- Real-time logging of performance data to the console.
This guide explains how to install the extension in your browser in development mode.
-
Clone or download this repository.
-
Navigate to
chrome://extensions/
in your Chrome browser. -
Switch on the
Developer mode
toggle in the top right corner. -
Click on the
Load unpacked
button. -
Browse to the directory where you cloned the repository and select the
shopify-admin-web-vitals-logger
folder. -
Confirm and the extension should now appear in your extensions list, ready for use.
-
Open your Shopify admin page.
-
Open the browser console (You can do this by right-clicking anywhere on the page, select "Inspect", then click on "Console").
-
You will see the Web Vitals logs in the console.
Note: Make sure the Shopify App Bridge is correctly installed and configured in your Shopify app, as this extension relies on the data provided by it.
Note: CLS is reported only on visibilitychange event. You need to switch tabs or something like that in order to see the value.
This project is licensed under the MIT License - see the LICENSE file for details.