Loading
Lazy-load the EE trial banner
What does this MR do and why?
The license banner code loaded on every page, even though the banner only shows when there's a license or subscription message. I import ee_trial_banner.js only when .js-gitlab-ee-license-banner is on the page.
References
Closes #604091 (closed)
Screenshots or screen recordings
No UI change.
How to set up and validate locally
- With a license close to expiry, open any page. The banner shows and can be dismissed, and the
eeTrialBannerchunk loads. - With a license that has no message, that chunk isn't requested.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Aditya Reddy