diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-16 18:09:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-16 18:09:23 +0300 |
commit | 01a8b31afeac9ac1eaf64d781de5ee8f15eb1897 (patch) | |
tree | 3c4404c0c68ca2cb8fa9564727a95bcbad7ab086 /app/assets/javascripts/helpers/startup_css_helper.js | |
parent | 127e6d9610b96f470ef4da2f7b5936211974fd17 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/helpers/startup_css_helper.js')
-rw-r--r-- | app/assets/javascripts/helpers/startup_css_helper.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/assets/javascripts/helpers/startup_css_helper.js b/app/assets/javascripts/helpers/startup_css_helper.js index 8351cbf04bf..d41a6209898 100644 --- a/app/assets/javascripts/helpers/startup_css_helper.js +++ b/app/assets/javascripts/helpers/startup_css_helper.js @@ -20,17 +20,7 @@ const handleStartupEvents = () => { } }; -/* Wait for.... The methods can be used: - - with a callback (preferred), - waitFor(action) - - - with then (discouraged), - await waitFor().then(action); - - - with await, - await waitFor; - action(); --*/ +/* For `waitForCSSLoaded` methods, see docs.gitlab.com/ee/development/fe_guide/performance.html#important-considerations */ export const waitForCSSLoaded = (action = () => {}) => { if (!gon?.features?.startupCss || allLinksLoaded()) { return new Promise(resolve => { |