ByCharlotte Klein,
a features writer and media columnist at New York Magazine
Jeff Bezos, wearing a tux earlier this year.
Photo: Evan Agostini/AP Photo
As Election Day approaches, with the possibility of a Trump restoration looking increasingly likely — or at least not unlikely — the mainstream press, which in its telling stood up so bravely against his lies and corruption last time, is very worried that it might not have all that in it again.
Sure, some people are fired up. But underlying it is a mix of exhaustion, frustration, and fear. After the so-called subscriptions “Trump Bump” that came thanks to readers deciding to actually pay for their news out of fear that, as the Washington Post declared, “Democracy Dies in Darkness,” the journalism business hasn’t really gotten any better. An endless series of exposés hammered home the dangers to civil liberties and possibly even press freedoms that Trump presented — and quite openly declared — but didn’t seem to do much to disqualify him to the half of the country that gets news from sources more amenable to the MAGA point of view. Or were just too exhausted themselves to pay much attention. Then, last week, Jeff Bezos, who’d so assiduously propped up the Washington Post for the last decade, suggested he might want to do things differently this time around. And, as NPR reported and the Post’s own media reporter later confirmed, over 250,000 digital subscribers — 10 percent of the paper’s base — responded by canceling. Among other things, it’s a shocking illustration of how dependent the press is on its readers’ goodwill.
Call it the Bezos Ditch, the ultimate antidote to the Trump Bump.
On Monday, on the fourth floor of the Washington Post’s K Street headquarters, editorial-page editor David Shipley addressed a weary staff. A few dozen members of the opinion operation gathered to hear from Shipley following last Friday’s news that the paper would end its decades-long practice of presidential endorsements — but not other political endorsements — a decision made by Bezos and announced by publisher Will Lewis. Shipley explained that the paper’s billionaire owner had started expressing concerns about running endorsement editorials in general about four weeks earlier, and the ultimate decision came despite Shipley’s “strenuous efforts” to change Bezos’s mind, according to a Post staffer present. It also came after the Post’s editorial board had reportedly drafted an endorsement of Kamala Harris, though Lewis later insisted that Bezos made the decision before reading any such draft.
“I think everybody is trying to just take a few weeks and see where the numbers all come out,” executive editor Matt Murray told the newsroom at a meeting on Tuesday, per a Post staffer. “The deed is done. I can’t undo the deed,” Murray said of Bezos’s decision. In the sidebar Zoom chat of the meeting, a reporter asked what to do with all of the people complaining to them — should they tell them to write letters to the editor? “Please don’t,” a letters editor responded, adding that they’d received 15,000 emails in 24 hours.
Murray’s comments came after Bezos wrote an opinion piece on Monday evening titled “The hard truth: Americans don’t trust the news media,” in which he defended his decision. “Presidential endorsements do nothing to tip the scales of an election” and only “create a perception of bias” and “non-independence,” he wrote. “We must work harder to control what we can control to increase our credibility.”
Many reporters I spoke to at the Post and beyond agree: Political endorsements make it harder for them to do their jobs given that most readers don’t understand newsrooms are independent of the opinion department. But Bezos’s 11th-hour decision has ironically catapulted the question of the Post’s independence into the spotlight, as Amazon and Blue Origin — both founded by Bezos — compete for government contracts, and Trump, a frequent critic of the Post, has gotten in the way of Bezos’s business interests before. Bezos in his opinion piece said “no quid pro quo of any kind is at work here” and that he was unaware Blue Origin executives would be meeting with Trump on the day of the announcement. “I sighed when I found out, because I knew it would provide ammunition to those who would like to frame this as anything other than a principled decision,” Bezos wrote. He chalked the lateness of the decision up to “inadequate planning.”
“Nobody’s surprised an election was coming up,” former Post executive editor Marty Baron told me Monday evening. In his eight years leading the Post — beginning in 2013, just a few months before Bezos bought the paper — Baron returned the paper to its former glory, particularly with aggressive coverage of the Trump administration. “And the circumstances do raise serious questions about what’s the motivation here,” Baron said, noting Bezos supported presidential endorsements in 2016 and 2020. “Why he’s had a change of heart, I don’t know. But he does have these other interests, and it’s very difficult to avoid the conclusion that these other interests influence his thinking about whether they should run editorials or not, particularly when this decision is made in the final weeks of an election.” Bezos, as Baron notes, was the one who selected “Democracy Dies in Darkness” to be the Post’s mission statement in 2017. “The feeling, I think, among a lot of people — particularly subscribers who canceled, unfortunately,” said Baron, is “that the mission’s been abandoned.”
But this is part of a larger problem. Everybody did great work last time around. But to what end? Efforts to limit Trump’s reach in the past have, one TV executive argues, blown up in the mainstream media’s face. “The left-wing attempt to deplatform Trump after the 2020 election was the single biggest mistake because it forced him to create his own alternative-reality ecosystem,” they said, “and it only accelerated our own irrelevance.”
This was part of Bezos’s point, of course, however clumsily and belatedly made. The Post’s decision came in the wake of the Los Angeles Times, also owned by a billionaire, Patrick Soon-Shiong, announcing that it too would demur on endorsing a presidential candidate this time. Soon-Shiong’s reasoning was not unlike Bezos’s: an attempt to reclaim some mantle of evenhandedness for the paper. Many found it difficult to not read something into that timing as well. Soon-Shiong too has business interests dependent on the government’s good will. Still, it could be something more particular to that owner’s family dynamic. Soon-Shiong’s daughter, Nika, said that the decision not to endorse stemmed from Harris’s stance on the Gaza war, a statement her father then contradicted. “If you’re an L.A. Times reader and consumer, you’re left uncertain what to believe,” said one former editor. As a result, the L.A. Times, too, has seen resignations, including that of editorials editor Mariel Garza, and fleeing subscribers — more than 18,000 in the week following the decision, according to Semafor.
Endorsements are among a series of concerns gripping newsrooms as they brace for the potential reelection of a president who declared the press the “enemy of the people” and has vowed retribution against the media in a second term — threatening, on the campaign trail and in interviews, to throw reporters in jail and revoke television networks’ broadcast licenses. While some executives feel it’s too early to work through questions about how to approach a second Trump term, it is top of mind for reporters with experience covering him.
“Many of us lived through 1.0, and we were chasing tweets at 11:30 at night, breathlessly trying to report out what he was saying and thinking based largely on Twitter, only to sometimes find that it didn’t really mean anything,” said one. “A lot of good reporting did get behind the curtain last time, but there was so much noise that it was hard to carve out the time and journalistic discipline to go deeper.” And while the endless outrage cycle of Trump was, last time around, good business, this reporter expects that, in a potential 2.0, “the noise is what news consumers — even dedicated ones — will turn off.” Added a second TV executive: “There’s a huge amount of anxiety over whether, if he wins, people just put their head in the sand for four years and wait it out. The interviews that have happened this year have been fine; they haven’t been ‘holy shit’ numbers. My sense is if he wins, it’ll be more news avoidance than Trump Bump.”
“I think if people want total clarity in how to cover Donald Trump, there is no total clarity. You have to do it with a mix of deep reporting and actually covering what he says,” former New York Times executive editor Dean Baquet, who led the newsroom from 2014 to 2022, told me.“If Donald Trump as president does the things he says he wants to do, the press is going to be really relevant. And, frankly, only a handful of news organizations are going to be able to cover it aggressively, no matter how much anybody thinks that there are 20 news organizations that can. There are not,” said Baquet. “There are a handful that are out in the world that can cover foreign policy while at the same time covering the White House and Congress aggressively. And people may criticize those news organizations, but you can count ’em on one hand.”
Given things Trump has said he would do, a second political reporter supposes that, if Trump wins, outlets’ investigative teams might essentially become extensions of their politics unit. “If he is trying to turn America into an autocracy, could [investigative reporters] embark on a series about sexism in girls sports? Could that be what they use their considerable firepower for?” they asked. “Maybe, but I think if there’s actual things to investigate with a president, it would be hard to use those sorts of resources for much other than that.”
And resources this time are in shorter supply, which may hamper news organizations’ ability to fact-check Trump at every turn as they did in 2017. “There is growing concern in many newsrooms about how executives are going to handle a potential Trump presidency with the fall of local news, the fall of advertising revenue. It all could suggest that executives might feel they’re operating from a position of weakness rather than strength as they deal with any new administration,” said one veteran reporter.
“I wish I could tell you there was a single newsroom head that I thought was looking out for journalism first, and of the five major orgs, there’s not one. We have a bunch of people afraid of losing their own jobs,” said the first TV executive. “They’re all looking at bottom-line issues and trying to figure out how to cater to Trump. There are individual newsroom leaders at shows that are worried about these things, but there is nobody in charge ready to speak up, and certainly no deputies in charge willing to either. They’re all just trying to prepare for massive cuts, and that’s what’s coming either way.”
“It’s going to change everything if he wins,” said the second TV executive. “You’ve got the major disruptions underpinning everything — strategically, platform-wise, consumer technology — no matter what happens in the election. And then if Trump wins, all of a sudden you’ve got this other pressure on everything. There’s brand damage. He undermines trust in the media. It’s just going to add a level of complexity.”
And then there’s the question of general fatigue among reporters who have done this work for the better part of a decade. “Can they summon the energy and the shock of the news to cover this thing, or do you need to bring in reinforcements — people for whom it is really brand-new again?” asked one top editor at a major news publication. A third political reporter said they’re surprised to see that many of their peers are ready to redeploy for Trump duty. But as another put it, despite the grueling nature of the gig, “I think it would be hard to live in the U.S. and work at a newspaper and be sourced in that world and know that world and decide I’m just not going to cover the biggest story in the world right now.”
Some see Bezos’s last-minute endorsement decision as a portent of his waning support for the newsroom. But others are reserving judgment until evidence suggests otherwise. “I’m furious because the timing is dumb and it has put us in a horrific situation, but the idea that Bezos is saying we shouldn’t endorse is potentially fine,” one longtime Post reporter said. “The way I’d feel he didn’t have my back is if he started weighing in on the news side, saying he didn’t like a story we wrote about holding power — be that Trump or Harris — to account. But if he ever meddled in the news side, you would have mass resignations, on the spot, from the top on down.”
Ominous comparisons to what has happened to the press in places like Russia, Turkey, Hong Kong, or Hungary aside, the big question is, as one of the TV execs put it, “If half the country has decided that Trump is qualified to be president, that means they’re not reading any of this media, and we’ve lost this audience completely. A Trump victory means mainstream media is dead in its current form. And the question is what does it look like after.”
By submitting your email, you agree to our
Terms and Privacy Notice
and to receive email correspondence from us. This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
Already a subscriber?
Already a subscriber?
`;
// integrate Sub(x) scripts and elements
if (hostname !== 'subs.nymag.com') { // do not integrate on this subdomain
document.head.appendChild(trackingScript);
document.body.insertAdjacentHTML('beforeend', subXAnimationElements);
}
There was an error processing the request. Please try again later."}).catch(e=>console.error("Error verifying email: ",e)))(r.querySelector(".content"),o.bannerCTAVerification)})):(l.remove(),s.remove()),o.dismissable||n.remove(),o.useAlertIcon||a.remove(),r.classList.add("show"),n.addEventListener("click",()=>{u(),r.classList.remove("show")})}else r.remove()}});
}, {"1":1,"6":6,"12":12,"35":35,"40":40}];
window.modules["global-nav.client"] = [function(require,module,exports){"use strict";const dom=require(3),auth=require(12),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find('[class^="global-nav"]'),body=dom.find("body"),dropdownItems=dom.findAll(".dropdown-wrap"),gtm=require(1),appendLandingPageParams=require(136),pageUri=require(124).getPageUri(),subscriptionPromoLinks=dom.findAll(".persist-params"),searchString=window.location.search||"";function closeDropdowns(e){let n=globalNav.querySelectorAll(".dropdown.open");dropdownItems.forEach(function(t){let o=t.querySelector(".dropdown");!n||t.contains(e.target)&&27!==e.keyCode||o.classList.remove("open")})}function gtmSendReport(e,n,t){let o={eventCategory:"ecommerce",eventAction:"componentClick",brand:e,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"global-nav-link"===t&&(o.eventLabel=n.href),gtm.reportNow(o)}function updateElementTargetUrlsIfQueryStrings(e){if(searchString){const n=new URLSearchParams(searchString);let t=e.href;if(t.includes("?")){const o=t.split("?"),i=new URLSearchParams(o[1]);for(let e of n.entries())i.set(e[0],e[1]);t=`${o[0]}?${i.toString()}`,e.href=t}else e.href=`${t}?${n.toString()}`}}function init(e){const n=e.querySelectorAll(".to-landing-page");window.addEventListener("auth:init",()=>{signInButton.addEventListener("click",function(e){e.preventDefault(),auth.showEmbeddedLoginFlow("top navigation")}),signOutButton.addEventListener("click",function(e){e.preventDefault(),gtmSendReport("Sign Out",e.target,"user-info-link"),auth.logout()}),auth.isAuthenticated()&&e.classList.add("signed-in"),auth.isSubscriber()&&e.classList.add("subscribed"),e.querySelectorAll(".user-link").forEach(e=>{e.classList.add("active")}),subscriptionPromoLinks.forEach(e=>{updateElementTargetUrlsIfQueryStrings(e)}),appendLandingPageParams(n)})}dropdownItems.forEach(function(e){e.addEventListener("click",function(){e.querySelector(".dropdown").classList.toggle("open")})}),body.addEventListener("click",closeDropdowns),document.addEventListener("keydown",closeDropdowns),globalNav.addEventListener("click",function(e){let n=e.target;n.classList.contains("global-nav-track")&>mSendReport(n.text,n,"global-nav-link")}),module.exports=init;
}, {"1":1,"3":3,"12":12,"124":124,"136":136}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(408),Fingerprint2=require(407),DS=require(406),Eventify=require(246);function registerGlobals(){window.DS=DS,window.Eventify=Eventify,window.Fingerprint2=Fingerprint2,DS.value("Eventify",Eventify),DS.value("Fingerprint2",Fingerprint2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var o=_pickBy(n.definitions,e=>e.providerStrategy===n.providers.controller),r=Object.keys(o);function t(e){return o=>{try{n.get(e,o)}catch(e){logMountError(o,e)}}}_each(r,n=>{var o=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),r=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(o,t(n)),_each(r,t(n))}),this.components=r}]),DS.get("components")}function logMountError(e,n){const o=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+o,n)}registerGlobals(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{mountDollarSliceComponents()}):mountDollarSliceComponents();
}, {"221":221,"246":246,"406":406,"407":407,"408":408}];
window.modules["ads.legacy"] = [function(require,module,exports){"use strict";const _map=require(118),_forEach=require(107),_isString=require(268),_intersectionWith=require(409),_isEqual=require(274),_each=require(408),_debounce=require(182),_sortBy=require(205),page=require(124),visit=require(114);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var o,n,s,r,d,c,u,l,g={},p=this,h=[],f=visit.getQueryParamsObject(["utm_campaign"]),m=document.querySelector('script[data-type="ad-a9"]'),b=[],w=!1,v=[],y=document.querySelector('script[data-name="ad-doubleverify"]');document.querySelector('script[data-name="concert-ads"]')||(i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,(m||y)&&(i.googletag.cmd=i.googletag.cmd||[],i.googletag.cmd.push(function(){i.googletag.pubads().disableInitialLoad()})),m&&(l=i.setInterval(function(){void 0!==window.apstag&&void 0!==window.apstag.timeout&&(i.clearInterval(l),window.apstag.cleared=!0,l=null)},10),setTimeout(function(){l&&(i.clearInterval(l),i.googletag.pubads().refresh(),window.apstag||console.log("MESSAGE: Timeout for A9 load exceeded, aborting"))},500)),y&&(b.push(new Promise(function(e){w?e():v.push(e)})),c=i.setTimeout(T,2500)),o=function(e){var t,a,o=e.data,n=[];return o.loaded?e:(o.loaded=!0,t=null,(t=o.sizes?u.defineSlot(o.name,o.sizes,o.id).addService(u.pubads()):u.defineOutOfPageSlot(o.name,o.id).addService(u.pubads())).setTargeting("adid",o.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=p.getAdCount(o.label),t.setTargeting("label",o.label+"_"+o.site+"-"+a),u.display(o.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),n=_(o),Promise.all(b).then(function(){n?window.apstag&&window.apstag.cleared?window.apstag.fetchBids({slots:[n],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([t],{changeCorrelator:!1})})}):y&&u.pubads().refresh([t],{changeCorrelator:!1}):u.pubads().refresh([t],{changeCorrelator:!1})}),e.slot=t,e)},n=function(e){var a,i,o,n=t(),s=e.getAttribute("data-name"),r=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),c=e.getAttribute("data-site");n=e.id,r&&r.length?(r=r.split(","),a=[],_map(r,function(e){e=e.split("x"),i=parseInt(e[0]),o=parseInt(e[1]),a.push([i,o])})):(e.classList.add("oop"),a=!1),this.data={id:n,name:s,sizes:a,loaded:!1,label:d,site:c},g[n]=this},r=function(e){u.cmd.push(function(){var t=o(e);g[e.data.id]=t})},s=function(e){var t=[];e.slot?(t=_(e))&&window.apstag&&window.apstag.cleared&&window.apstag.fetchBids({slots:[t],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([e.slot],{changeCorrelator:!1})})}):e&&r(e)},u.cmd.push(function(){var e,t,o,n=page.getMeta("article:tag"),s=page.getMeta("author"),r=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");o=[],_forEach([n,s,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&o.push(e)})}),u.pubads().setTargeting("kw",o),u.pubads().setTargeting("entry_group",o),r=r.slice(r.lastIndexOf("/")+1),u.pubads().setTargeting("pn",r),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=r,this.create=function(e){return new n(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),s(t)):s(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(h,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?r(e):i.setTimeout(function(){r(e)},2e3)}),y&&window.PQ.cmd.push(()=>{try{window.PQ.loadSignals(["ids","bsc","vlp"],T)}catch(e){T(),console.error(`There has been an error loading Double Verify signals: ${e}`)}}),h=[]},10),this.addToPageLoadQueue=function(e){h.push(e),d()});function _(e){var t,a=e.sizes;return a=_intersectionWith(a,[[970,250],[970,90],[728,90],[300,600],[300,250],[320,100],[320,50]],_isEqual),e.sizes&&e.sizes.length&&(t={slotID:e.id,sizes:a,slotName:e.label}),t}function T(){i.clearTimeout(c),w=!0,_forEach(v,function(e){e()})}}]);
}, {"107":107,"114":114,"118":118,"124":124,"182":182,"205":205,"268":268,"274":274,"408":408,"409":409}];
window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}});
}, {}];
window.modules["client.legacy"] = [function(require,module,exports){"use strict";require("cid.legacy"),require("ads.legacy"),require("facebook.legacy"),require("aaa-module-mounting.legacy");
}, {"cid.legacy":"cid.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.legacy","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy"}];
window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)).forEach(key => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules).filter(key => typeof key === 'string' && key.match(/\.client$/)).forEach(key => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = '';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]