Things you buy through our links may earn Vox Media a commission.
The Changing Legacy of Tom Wolfe, Chronicle of Changing Times
ByMatt Zoller Seitz,
critic, filmmaker, and staff writer for Vulture and New York
Author Tom Wolfe in his Upper East-Side apartment in October 2004.
Photo: David Corio/Redferns
“At this weak, pale, tabescent moment in the history of American literature, we need a battalion, a brigade, of Zolas to head out into this wild, bizarre, unpredictable, Hog-stomping, Baroque country of ours and reclaim it as literary property.”
That’s a line from the late Tom Wolfe’s “Stalking the Billion-Footed Beast,” a 1989 Harper’s essay urging American literature to move away from the then-fashionable model of “realistic fiction” (defined by Wolfe as writing about “real situations, but very tiny ones, tiny domestic ones, for the most part, usually in lonely Rustic Septic Tank Rural settings”), and toward something more like Charles Dickens, Honoré de Balzac, Émile Zola, and Theodore Dreiser — and, well,more like The Bonfire of the Vanities, Wolfe’s 1987 quasi-Dickensian potboiler. It takes a special kind of audacity to write an essay exhorting people to write like you.
But that was Tom Wolfe. The wry southern dandy in the bespoke white suits had an ego as big as the world, and the serene conceit that he exuded was justified, up to a point. Wolfe was not just one of the pioneers of so-called New Journalism, which applied techniques of fiction to reportage; he was its most famous practitioner, rivaled only by Hunter S. Thompson, whose own star rose a bit later. During the first third of his career, Wolfe was a relentless chronicler of class, status, and cultural relativity in the United States, going on safari to document subcultures that seemed exotic to the kinds of readers who subscribed to the outlets that published Wolfe. Although he was no pup when his career started to catch fire — his breakthrough piece “There Goes (Varoom! Varoom!) That Kandy-Kolored (Thphhhhhh!) Tangerine-Flake Streamline Baby (Rahghhh!) Around the Bend (Brummmmmmmmmmmmmmm)…” was published in 1963, when he was in his early 30s — Wolfe made his reputation explaining the young to the old and the cool to the square.
But time caught up with him eventually. When you look back over the full arc of his career, you see the times outpacing him, and you hear his once inimitable, fresh voice doing pirouettes and backflips to camouflage the fact that he wasn’t organically plugged into the culture anymore. He was another elderly white man, albeit one more curious and open-minded than most, trying to pin down a fast-changing and increasingly unrecognizable world.
Time has a way of making fuddy-duddies of every writer. It’s humbling, in its way. His Bonfire period looks, in retrospect, like the crest of his importance, the culmination of nearly 30 years spent honing his voice and philosophy. The book was such a smash that the next few years of Wolfe’s life revolved around promoting and defending it. It summed up a particular style of American obliviousness, a substratum of Reagan-era reactionary greedball thuggery that was swallowing the American mind. It made Wolfe a true household name, a brand, really, and not even the box-office failure of the film version could tarnish his aura as the all-knowing interpreter of the Zeitgeist. In Robert Altman’s 1991 Hollywood satire The Player, the hero, studio executive Griffin Mill, is dispatched to read the latest Tom Wolfe book (invented for the film) in galley form; sight unseen, his boss tells him to bid $1 million. Bonfire was the big one, the book that Wolfe had been building toward.
He waited until he was in his 50s to publish his first novel, but he’d been experimenting with non-newspaper-approved techniques during the quarter-century leading to that point, glitzing up journalism with a linguistic fireworks display that included such previously forbidden devices as onomatopoeia (Ka-BLONGGGGG!!!!), excessive em dashes — you know, like this — and this — gosh, here’s another one — and ellipses … and exclamation points (!), even multiple exclamation points (!!!!!!), and CAPITALIZED WORDS deployed for EMPHASIS or for IRONIC EFFECT, and dramatic … pauses, and all manner of hemming and hawing and, you know, come on, like this, see? It all gave readers the feeling that Wolfe was standing right in front of you, a man in a cream-colored suit tripping over his own fabulous vocabulary as he tried to find the words, the right words, exactly the RIGHT ones, to explain how amazingly incredibly EXCITED he was about the people and places he’d just seen. According to the introduction of Wolfe’s first essay book, 1965’s The Kandy-Kolored Tangerine-Flake Streamline Baby, the titular piece, the first to be written in the now-recognizably Wolfean style, got printed in Esquire because Wolfe was blocked on deadline and sent his editor, Byron Dobell, several pages of unfiltered notes. Dobell stripped “Dear Byron” off the top and published it. The piece was about the custom car and motorcycle culture; the subsequent, similarly titled essay book also included profiles of record producer Phil Spector (“The First Tycoon of Teen”), disc jockey and impresario Murray the K (“The Fifth Beatle”), and “The Last American Hero Is Junior Johnson. Yes!”, an elegiac look at stock-car racer Junior Johnson that was eventually adapted into a Jeff Bridges movie.
Thus was Wolfe’s brand established: He was the cultural spelunker, donning a snappy fedora instead of a pith helmet and venturing forth to report on the bold, the cool, the authentic. The 1968 nonfictionbook The Electric Kool-Aid Acid Test, which followed Ken Kesey and his Merry Pranksters around, was one of the first widely consumed accounts of the American counterculture, released mere days after the debut of Hair. Radical Chic and Mau-Mauing the Flak Catchers (1970) reprinted two lengthy New York articles about, respectively, a party thrown by Leonard Bernstein to benefit the Black Panther Party, and the ineffectiveness of social programs being administered by white bureaucrats to San Francisco’s poor black, Latinx, Chinese, Native American, and Samoan populations. (Reread the latter and you’ll see harbingers of the tin-eared take on race relations that would problematize much of Wolfe’s later writing —though it’s buried so deep within Wolfe’s still-lacerating portrait of performative white guilt that it’s not the first thing that jumps out at you.)
Wolfe was fascinated by what writers of earlier decades might’ve called “the manly virtues” — stoicism, single-minded focus, no-fuss competence, devotion to “a code”; the Steve McQueen and John Wayne mythos — and by the time he published what is arguably his masterpiece, 1979’s The Right Stuff,a lean, rollicking nonfiction book about the Mercury astronauts and the test pilots who preceded them, it was clear that even as he tried to poke holes in macho façades, he couldn’t help being impressed by how near-impervious they were. Philip Kaufman’s 1983 film adaptation of The Right Stuff exhibits some of the same glamorizing tendencies, though it does an equally good job of satirizing the public-relations aspects of the space race, the self-promoting inclinations of NASA and the White House, and the credulous stenographers of the press. (Of all Wolfe’s fellow practitioners of New Journalism, only Norman Mailer did a better job of evoking the bland American hive-mind that took hold during NASA press conferences.) The phrase “The Right Stuff” was itself an indication of Wolfe’s genius for identifying an elusive something and making it nearly concrete: It was, among other things, “the ability to go up in a hurtling piece of machinery and put his hide on the line and then have the moxie, the reflexes, the experience, the coolness, to pull it back at the last yawning moment — and then go up again.”
Wolfe was a master at hanging labels on mind-sets and qualities that seemed indescribable, or that had not yet been captured in print by another writer because nobody else had his particular eye. “Social X-Ray” described the emaciated, plastic-surgery-sculpted society women that populate the upper echelons of the world’s cities. “Mau-Mauing” deployed as a verb, described how nonwhites used race-based intimidation to shake loose public funds from stingy white government agencies. “Radical Chic” was the fashionable public display of social conscience by rich (usually white) people who harbored socially liberal attitudes. “The Me Decade” described the post-counterculture focus on the self that defined the 1970s: Wolfe coined it in 1976, in the pages of New York. Wolfe is even credited with the phrase “Good Ol’ Boy,” which appears in his profile of Junior Johnson — a phrase that was originally used in England, where it had a different meaning, but that perfectly described the mental fraternity that linked socially conservative southern white men of every social class.
Wolfe’s mojo dimmed, as tends to happen to writers who keep applying the same tried-and-true creative methods that worked for them in the past, even when the future is staring them in the face. His 1998 novel A Man in Full was a southern-fried Bonfire gloss in which a white woman’s rape accusation against a black athlete sets Atlanta on the path toward racial violence; however exhaustive Wolfe’s reporting was, reading the finished book was a tiring and off-putting experience, filled with descriptions of youth culture and black culture (and black youth culture) that felt stranded somewhere between National Geographic and Fox News Channel. The book’s hero, a thick-necked good ol’ boy businessman named Charlie Croker, eventually emerged as the unquestioned hero of the story, at times verging on a folksy redo of one of Ayn Rand’s virile, two-fisted industrialists, facing down lily-livered, mealy-mouthed hordes of hand-wringing liberals and boisterous, accusatory minorities.
Bonfire exhibits a bit of that same sensibility, that of an unreconstructed southern white guy loosed upon the scary multicultural metropolis. He seems to understand and even empathize with the moneyed bond trader Sherman, his girlfriend Maria, the Assistant District Attorney Larry Kramer, and the world-weary judge Myron Kovitsky, all of whom are white, but the novel’s major black characters, including accident victim Henry Lamb’s mother, are treated as ridiculous caricatures or downtrodden emblems of society’s indifference, and whenever the book spends time in black neighborhoods, you can feel Wolfe’s heart racing along with his characters’. His penultimate novel, 2004’s I Am Charlotte Simmons, was similarly irksome. The concept deserved points for audacity — Wolfe, 72 at the time of publication, was writing about the contemporary sexual mores of college students — but much of it came across as simultaneously leering and censorious. Reviewing the book for New York, Cristina Nehring called Wolfe’s view of youthful eroticism “dark” and “rotten.” “For all his incisive, inclusive observation, for all the student jargon he has mastered, he is nearly the age of his old nemesis, Norman Mailer,” she wrote. “And with age comes disbelief; with age comes a kind of pessimism. The capacity for wonder is the elixir of youth.”
Charlie Croker might have been Wolfe’s own fantasy of himself, a Sherman McCoy with muscles and a sense of honor, somebody who could stand fast in changing times even though the world swirling around him became more unfathomable by the week. Still, throughout his career, Wolfe had a knack for insights that seemed to sum up entire mind-sets and experiences: “The problem with fiction is that it has to be plausible. That’s not true with nonfiction.” “A cult is a religion with no political power.” “Art is a creed, not a craft.” “One belongs to New York instantly, one belongs to it as much in five minutes as in five years.” “The reason a writer writes a book is to forget a book and the reason a reader reads one is to remember it.” Wolfe forgot a staggering amount of great writing, and the best of it is ageless.
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();
// ]]