@shopify/app-bridge-core
Version:
**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**
23 lines (20 loc) • 616 B
JavaScript
import { Group } from '../types.js';
import { actionWrapper } from '../helper.js';
var Action;
(function (Action) {
Action["SKELETON_PAGE_LOAD"] = "APP::PERFORMANCE::SKELETON_PAGE_LOAD";
Action["FULL_PAGE_LOAD"] = "APP::PERFORMANCE::FULL_PAGE_LOAD";
})(Action || (Action = {}));
function skeletonPageLoad() {
return actionWrapper({
group: Group.Performance,
type: Action.SKELETON_PAGE_LOAD,
});
}
function fullPageLoad() {
return actionWrapper({
group: Group.Performance,
type: Action.FULL_PAGE_LOAD,
});
}
export { Action, fullPageLoad, skeletonPageLoad };