Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static syncNextPage(data) {
- return new Promise((resolve, reject) => {
- Promise.all([
- AJAXUpdater._updateNodesAttributes(data),
- AJAXUpdater._updateBody(data),
- AJAXUpdater._updateHeadTags(data),
- AJAXUpdater._updateHeadStyles(data),
- AJAXUpdater._updateScripts(data),
- AJAXUpdater._updateTrackerGA(),
- AJAXUpdater._updateTrackerFBPixel(),
- AJAXUpdater._updateTrackerYaMetrika()
- ])
- .then(document.fonts.ready)
- .then(() => AJAXHelpers.resolveOnNextTick(resolve))
- .catch((e) => reject(e));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement