UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

20 lines (19 loc) • 431 B
import { AbstractService } from "./AbstractService.js"; class LoadService extends AbstractService { static config = [[() => window, [["load"]]]]; props = { time: performance.now() }; handleEvent() { this.props.time = window.performance.now(); this.trigger(this.props); } } function useLoad() { return LoadService.getInstance(); } export { LoadService, useLoad }; //# sourceMappingURL=LoadService.js.map