Artists from the island continue to dominate. Online, they’ve gained a rep as the “good Europeans.”
ByNate Jones,
a Vulture senior writer covering movies and pop culture
Illustration: Laura Callaghan for New York Magazine
Illustration: Laura Callaghan for New York Magazine
Illustration: Laura Callaghan for New York Magazine
When was the moment Ireland became cool? Was it in December 2018, when Derry Girlshit Netflix, introducing a global audience to Northern Ireland’s ’90s pop-culture ephemera? Or was it a few months later, when Sally Rooney’s Normal People arrived in the U.S., occasioning multiple glowing New York Times reviews and spurring the first wave of trend pieces about “the cult of Sally Rooney”? Either way, by the time The Banshees of Inisherin was released in 2022, a full-on Irish cultural invasion was underway. Call them the Craic Pack: Authors such as Anna Burns and Paul Lynch won major prizes. Actors Colin Farrell and Cillian Murphy and singer-songwriter Hozier stepped back into the spotlight. Barry Keoghan went from art-film weirdo to pop-star boyfriend. Even brands got swept up in it: You couldn’t call yourself an Instagram baker without extolling the virtues of Kerrygold butter.
As with Taylor Lautner in the second Twilight movie, our affable friend across the pond turned out to be hiding eight-pack abs. “Over the past few years, it’s become quite twee and also quite sexy to be Irish,” says the writer Róisín Lanigan, who published an essay in Vice on the subject. Lanigan first noticed a change around the time Normal Peopledebuted on TV and made a star of Paul Mescal. “Americans and English people were introduced to a new vision of Ireland: rose-tinted and beautiful,” she says. Lanigan comes from Northern Ireland, and she cautions that this new vision usually depicts “a certain type of Irish. On the whole, it seems to be, ‘They’re hot and sad.’”
Accurate or not, Americans liked what they saw. This past summer’s craze for “hot rodent boyfriends” spotlighted several Irish actors. An Instagram account that does nothing but post photos of Mescal has over 160,000 followers. On YouTube, an interview in which comedian Brittany Broski joked that her greatest career goal was “Irish cock” received 2.7 million views.
Among young, online, lefty Americans, the Irish are considered “the good Europeans.” While cinephiles shudder to learn the opinions of their favorite French actors, Irish stars are assumed to have respectable politics by default. A nation that lagged behind its neighbors economically and politically now appears startlingly progressive: A former colleague once told me, approvingly, that the Irish were the only anti-colonialist white people he had ever met.
It hasn’t always been like this. While Ireland has always punched above its weight culturally, the shine of its many luminaries rarely reflected back on the island. (Few people finish reading Dubliners wishing they were a Dubliner.) When I call up columnist Séamas O’Reilly to discuss the shift in Ireland’s reputation, he paraphrases a famous quote from the author Iris Murdoch: “Being Irish is a bit like being a woman: Everyone says you’re perfectly nice, but you get the feeling you’re not very important.” To O’Reilly, Ireland benefits from being “everyone’s second-favorite country. There’s a nonthreatening feeling to Ireland. We’ve never invaded anyone; we’ve never colonized anyone. What’s not to like about that?”
Still, he finds it funny that Irishness is now “cool.” According to O’Reilly, “Irish people are cool in a completely different way than things usually get called cool. When I think of the things I like about Irish culture, it’s the interpersonal things. It’s based on humor. It’s extremely friendly — there’s a neighborliness.” He points to his father, whose father was a farmer from Fermanagh who came from a long line of farmers from Fermanagh: “There’s a small-village mentality. Culturally, you shouldn’t make a show of yourself.” The current crop of Irish talent exemplifies these qualities, O’Reilly says. “You see Paul Mescal, Saoirse Ronan, Colin Farrell, or Brendan Gleeson being so down-to-earth when they talk. It seems like a superpower that they’re normal people.” (Pun not intended.) These Irish stars haven’t yet been hit by the homegrown backlash someone like Bono attracts. “It’s nice that we like our brand ambassadors,” O’Reilly says.
Ask those who work in the Irish cultural scene about the explosion of interest in Ireland and they will likely point you toward an increase in arts funding, new tax credits for filming, and a history of emigration that allows Irish artists a transnational point of view. History too is responsible for Ireland’s current progressive image. The fact that the Catholic Church held so much sway over the Republic of Ireland’s political institutions for so long ensured that, once the shackles were loosened, the South more or less speedran the entire postwar era in the past 30 years. Same-sex intercourse was decriminalized in 1993; divorce was legalized in 1996, followed by same-sex marriage in 2015 and abortion in 2018. Thus, as the U.S. and U.K. have too often in the past decade seemed to be moving backward, it is Ireland that appears striding confidently forward.
If Ireland has evolved to meet the wider progressive community where it’s at, so too have young progressives begun to follow the Irish lead. I first noticed this after the death of Queen Elizabeth II in 2022, when Irish Twitter set the tone for the subsequent online jubilation. On Twitter, a video of Irish soccer fans chanting “Lizzy’s in a box” received over 133,000 likes. A TikTok clip of Irish step-dancers performing a rendition of “Another One Bites the Dust” outside Buckingham Palace was viewed more than 6 million times, its power undimmed by the unfortunate detail of having been shot while the queen was still alive. That week, I was struck by how many of my friends all of a sudden became stalwart anti-Royalists. To me, it felt a bit like a leftist St. Paddy’s Day — weren’t they appropriating the political bona fides of the Irish, who had come by their hatred of the royals the hard way? When I mention this to Lanigan, she demurs. “I don’t think you have to be Irish to be anti-Royalist,” she says. “You just have to be sensible.”
This reputation for plainspoken wisdom and anti-imperialist cred explains much of Irishness’s contemporary appeal. As Sharon Horgan, who returned home to make Bad Sisters after years working in British TV, told The Independent in 2021, “We’re naturally quite pleased with ourselves but also historically shat upon. I suppose Ireland is the natural underdog, in many ways. And we’re very good at telling the truth.”
To Americans sympathetic to the Palestinian cause, the image of the Irish speaking truth to power has only intensified since the beginning of Israel’s war in Gaza. In keeping with the historic solidarity between Irish republicans and the Palestinian people, Irish celebrities have been particularly vocal in the antiwar effort. Rooney used the launch of her book Intermezzo to speak out against the “unfolding genocide.” Mescal donated a signed Aftersun poster to the Cinema for Gaza auction. Nicola Coughlan, whose father served as a U.N. peacekeeper in Jerusalem, spent her Bridgerton press tour wearing a cease-fire pin and has since called for an arms embargo. Barely a day goes by without an Irish-memes account reposting an old photo of Farrell in a keffiyeh. Fandom being what it is, even pro-Palestinian activism can take on a competitive edge: I’ve read blind items hinting that Rooney had urged an unnamed Irish celebrity to be more outspoken on Gaza.
For Northern Irish Catholics, who have their own cultural memory of armored cars and tanks and guns, the parallels are starker still. Onstage at the Reading Festival over the summer, the Irish-language hip-hop group Kneecap drew a line between the violence of the Troubles and the harm inflicted upon the people of Gaza. Two-thirds of the group are from Belfast, which member Móglaí Bap described to the audience as “still under British occupation.” But, he told the crowd, “there’s a worse occupation happening right now in Palestine. They’re bombing Palestinians from the sky.”
Around this time, Kneecap’s self-titled biopic was a hit in the U.K. and Ireland; it has since been selected as Ireland’s official Oscar submission. The film features a cameo from Gerry Adams, former Sinn Féin leader (and long-rumored former head of the Provisional Irish Republican Army, which he denies). A man once considered too dangerous to be heard on television participates in a gag about drug-induced hallucinations. That neatly sums up the journey taken by Northern Ireland in the 26 years since the Good Friday Agreement. While the Republic still dominates Ireland’s international image, projects like Derry Girls have helped the North catch up. “We were a bit of an awkward subject culturally, and now it’s less awkward,” says Lanigan, who notes that, for the first time since the 1970s, movies and TV shows set in Northern Ireland no longer need to open with a montage of sectarian strife. The movie Kneecap takes the piss out of this trope, as it does basically everything else about the Troubles. If there is a knock on Kneecap, it’s that they’re messing about with the imagery of a conflict they’re too young to have experienced. But as the group’s Mo Chara puts it to me, “What else are we gonna do — stay traumatized and miserable?”
We should not forget that the new Irish fantasy leaves out just as much as the old one did. Just as modern Ireland is not a romantic backwater, so too is it far from a socialist paradise. Since the Good Friday Agreement, Northern Ireland’s devolved legislature has spent much of its history unable to function. The Republic is ruled by the nigh-indistinguishable centrist parties Fine Gael and Fianna Fáil. (Although if you like tax breaks for American tech companies, have I got a nation-state for you.)
And Ireland is not immune from the maladies that have afflicted the U.S. and Britain. It has a housing crisis too, as well as a growing threat from the far right, which was behind a series of anti-immigration demonstrations this past summer. Lanigan finds the way Irishness has turned into a meme a modern form of paddywhackery, the ancient habit of “playing up the cutesiness that makes other parts of Irish identity more palatable.” (Incidentally, this is the issue many Irish critics have with the work of Martin McDonagh, who was born and raised in London.) Like many Irish before her, Lanigan emigrated for better opportunities in England. “The Irish diaspora thrives when conditions of late capitalism make it seem that you can’t live at home,” she says. “But the nature of modern immigration means that people are now coming to Ireland. I don’t think there’s a cultural reckoning with what that means. There’s an awful lot of racism around ‘What does it mean to be Irish? Can you be Irish if you’re not white?’”
O’Reilly doesn’t want to comfort himself with the notion that Ireland’s experience of subjugation has inoculated it against the xenophobia on the rise elsewhere in Europe: “What kind of arrogance do we have to imagine that we somehow have the emotional or intellectual infrastructure to be able to forestall this?” Yet he can’t help but take solace in examples of the Irish pushing back on nativist myths. After our interview, he sends me a clip of a woman in Dublin firmly shooting down a right-wing -YouTuber trying to bait her into a confrontation over migrants. Before the potato famine, she notes, Ireland had 8 million people — millions more than it does now. There’s more than enough room.
Any time an identity becomes a trend, there is an inevitable sense of dislocation. “When I first started writing fiction years ago, a publisher said to me, like, ‘We’ve got enough Irish stories at the moment,’” Lanigan says. “That seemed to change in the past couple of years. You had articles about ‘the Year of the Irish,’ and it was boxing-in in a different way.” Irishness is currently having a moment. But then what? “Maybe it’s just in vogue,” O’Reilly says. “In three years’ time, everyone will be going for whatever Venezuela’s prevailing social mores are.”
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();
// ]]