Page ready plugin
This plugin collects multiple events and then signals one time when the page is ready. For example, waiting on the user page authentication or products displayed.
<body data-page-ready="pageMetadata user products"></body>
import {ceddl} from '@ceddl/ceddl-polyfill';
import {PageReady} from '@ceddl/ceddl-aditional-inputs/dist/page-ready';
PageReady.run(ceddl);
ceddl.eventbus.on('pageready', function (data) {
console.log(data);
});