@shopify/app-bridge-core
Version:
**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**
25 lines (24 loc) • 797 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Action = void 0;
exports.skeletonPageLoad = skeletonPageLoad;
exports.fullPageLoad = fullPageLoad;
var types_1 = require("../types");
var helper_1 = require("../helper");
var Action;
(function (Action) {
Action["SKELETON_PAGE_LOAD"] = "APP::PERFORMANCE::SKELETON_PAGE_LOAD";
Action["FULL_PAGE_LOAD"] = "APP::PERFORMANCE::FULL_PAGE_LOAD";
})(Action || (exports.Action = Action = {}));
function skeletonPageLoad() {
return (0, helper_1.actionWrapper)({
group: types_1.Group.Performance,
type: Action.SKELETON_PAGE_LOAD,
});
}
function fullPageLoad() {
return (0, helper_1.actionWrapper)({
group: types_1.Group.Performance,
type: Action.FULL_PAGE_LOAD,
});
}