Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Roll out the feature which ads are initialised earlier (#1056)
Browse files Browse the repository at this point in the history
🐿 v2.5.13
  • Loading branch information
fenglish committed Aug 1, 2017
1 parent d921bdb commit 947c934
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions browser/js/component-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ export class ComponentInitializer {
this.initializedFeatures.date = true;
}

if (flags.get('adInitEarlierNui')){
if (config.features.ads && !this.initializedFeatures.ads) {
ads.init(flags, appInfo, config.features.ads);
this.initializedFeatures.ads = true;
}
if (config.features.ads && !this.initializedFeatures.ads) {
ads.init(flags, appInfo, config.features.ads);
this.initializedFeatures.ads = true;
}

if (config.features.lazyLoadImages && !this.initializedFeatures.lazyLoadImages) {
Expand Down Expand Up @@ -136,12 +134,6 @@ export class ComponentInitializer {
.then(cb)
.then(() => {
// TODO - lazy load this
if (!flags.get('adInitEarlierNui')){
if (config.features.ads && !this.initializedFeatures.ads) {
ads.init(flags, appInfo, config.features.ads);
this.initializedFeatures.ads = true;
}
}

if (!this.initializedFeatures.lazyTracking) {
tracking.lazyInit(flags);
Expand Down

0 comments on commit 947c934

Please sign in to comment.