Advertisement
artemsemkin

Untitled

Oct 9th, 2023 (edited)
899
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static syncNextPage(data) {
  2.   return new Promise((resolve, reject) => {
  3.     Promise.all([
  4.       AJAXUpdater._updateNodesAttributes(data),
  5.       AJAXUpdater._updateBody(data),
  6.       AJAXUpdater._updateHeadTags(data),
  7.       AJAXUpdater._updateHeadStyles(data),
  8.       AJAXUpdater._updateScripts(data),
  9.       AJAXUpdater._updateTrackerGA(),
  10.       AJAXUpdater._updateTrackerFBPixel(),
  11.       AJAXUpdater._updateTrackerYaMetrika()
  12.     ])
  13.       .then(document.fonts.ready)
  14.       .then(() => AJAXHelpers.resolveOnNextTick(resolve))
  15.       .catch((e) => reject(e));
  16.   });
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement