该应用有50多个请求; 9获取请求和休息是资产(字体,图像等)。以下是应用程序在加载时遵循的趋势:
我无法理解为什么应用程序会在大多数时间闲置。这种行为可能是什么原因?
以下是应用结构:
CH.event.on(
'page.app.load',
async (
{
fID,
el,
docId,
isAdmin,
isLoggedIn,
userInfo,
isLpp,
forgetPasswordLink,
playbookId,
} = {}
) => {
// first batch of requests which has 5 GET calls
loadDatData({ fID, docId, playbookId: playbookId[4] });
// second batch of requests which has 4 GET calls
loadBackboneManagerData();
await domLoaded;
document.body.classList.add('dat_app');
render(
<App
el={el}
docId={docId}
isAdmin={isAdmin}
loggedin={isLoggedIn}
userInfo={userInfo}
forgetPasswordLink={forgetPasswordLink}
/>,
document.querySelector(el)
);
}
);