What’s improper with the UK expertise pipeline and how one can enhance it

0
91


It is nothing new at this stage that the UK video games trade is predominantly white and male.

We explored the outcomes of UKIE’s video games trade census on many events on the GamesIndustry.biz Academy, attempting to supply concrete options to among the points highlighted by the info from the UK commerce physique.

From understanding the limitations that Black professionals face, to questioning whether or not it is open to working class individuals, or how one can method psychological well being points within the office, we have now tried to supply sources that immediately reply the issues highlighted by the census — a few of them going manner past the UK borders.

One facet we have not touched upon intimately is schooling.

“81% of video games employees are educated to a minimum of degree-level, considerably above that of the general UK workforce at 23% and the cultural and inventive industries usually at 56%,” wrote Dr Mark Taylor, senior lecturer on the Sheffield Strategies Institute and creator of census.

The video games trade workforce within the UK is a reasonably homogenous block — firms are inclined to recruit from the identical sources, whether or not recruitment businesses or universities immediately. Remodeling the UK expertise pipeline has turn into a necessity if the video games trade is to deal with its variety downside.

To mark Video games Careers Week, which runs till April 2, we caught up with Sumo Leamington operations director Harinder Sangha, Sumo Digital’s group expertise acquisition supervisor Kieran Holland and Sumo Group’s director of schooling partnerships Jacob Habgood in regards to the present points with the UK expertise pool and what video games firms can do to assist enhance it.

The problems with the UK expertise pool

The UK is dwelling to many sport studios (2,108 as of 2016, to be precise), that are all looking for a similar expertise. It may be actually tough to seek out the best particular person for the best function, Sangha argues, and much more so to seek out expertise that does not come from the identical mildew.

“I’ve received a ten-year-old daughter,” she says. “She is going to say to me that she needs to be a scientist. However how can we hold these ladies desirous to observe that [path]? As a result of they’re nonetheless dropping out from [STEM studies]. We do not actually know why they’re dropping out, however they’re. I need my daughter to proceed to know that there is a profession right here. So we should be seen.

Sumo Leamington operations director Harinder Sangha

“As an organization we’re going into faculties at any time when we are able to and ensuring that they will see girls in these roles, in addition to individuals of color. As a result of it is extra than simply girls. So they are saying: ‘Oh, sooner or later, I may very well be there’. It is not only for white males, it’s for everybody.”

It is a catch-22: the UK expertise pipeline is not numerous as a result of there’s little variety presently seen in video games. However there cannot be extra variety within the trade if the pipeline just isn’t extra numerous.

UK firms have to discover routes past the normal video games schooling path in the event that they want to carry enduring variety, which can profit everybody.

“I believe video games programs battle to ship variety as a result of there is not a crucial mass amongst these programs,” Habgood provides. “For so long as these programs stay 90% white male, it is very tough for individuals exterior of these teams to think about themselves as belonging inside that very same group. That could be a actual problem.

“Marie-Claire [Isaaman, CEO] in Girls in Video games did some nice work at Norwich, turning across the gender steadiness on her course, and that actually did concentrate on utilizing a cohort of feminine college students to advertise the course to successive generations. That was a extremely nice method. When you have not received that many individuals already from sure backgrounds within the video games trade, it is exhausting to get that message throughout.”

There are additionally sensible limitations in the best way subjects are organised at a college stage, which makes it tough to draw children to STEM research.

“For so long as programs stay 90% white male, it is very tough for individuals exterior of these teams to think about themselves as belonging”

Jacob Habgood

“I used to be speaking to the British Laptop Society this morning in regards to the problems with even easy issues like timetabling,” says Habgood. “The truth that GCSE laptop science might be time tabled concurrently drama or artwork… makes it tough for individuals to take each these topics in school.The truth that laptop science is not one thing that it’s important to take at GCSE [level] to do it at A Stage, and you do not have to take an A Stage to do a level stage…

“In reality, my very own daughter has simply conveyed to me, as she’s going to take her GCSE choices, that: ‘Effectively I do not actually need to take it as a result of I might all the time take it in a while.’ And I believe that is unlucky and there are some issues that should be addressed there that may assist with gender steadiness.”

Prioritising different subjects due to sensible causes finally means children are much less possible to pay attention to the profession choices linked to STEM. The sooner these subjects are launched to kids, the sooner they will realise what they will do with these expertise, the sooner they will see video games as a profession path.

  • Small expertise pool and worldwide competitors

As already touched upon, there are quite a lot of video games firms within the UK, and the expertise pool is so much smaller than these firms’ appetites, Holland says. Whether it is to remain on the forefront of the worldwide market, the UK wants to seek out expertise from extra sources.

“We’re rising so quick and the pool of accessible abilities simply is not rising on the similar velocity”

Kieran Holland

“We’re all preventing for relevance within the pool of accessible abilities within the UK, so it turns into extremely difficult,” Holland provides. “We’re rising so quick and the pool of accessible abilities simply is not rising on the similar velocity. It is considered one of our greatest challenges: how can we guarantee that we’re providing the door to entry and creating the best programmes in the best locations, to herald a various workforce that is giant sufficient to have the ability to fulfil quite a lot of our wants?

“And the opposite problem — it is a smaller one however it’s true — is there is a component of mind drain to studios exterior of the UK. There’s some improbable studios in Europe, Scandinavia, the US and past, the place we do lose a few of our improbable expertise. My crew usually reaches out to expertise who’ve come from the UK and now exists in studios exterior of the UK, asking in the event that they wish to come again. It is a very acute downside and it is getting tougher, yr by yr.”

  • The trade depends an excessive amount of on graduate expertise

Lastly, the UK video games trade has traditionally relied on graduate expertise to profit from its workforce, which ends up in that challenge we already recognized of expertise coming from a homogenous block.

Trying again on the UKIE census knowledge, 54% of UK employees have a Bachelor’s diploma as their highest stage of schooling, whereas it is a masters for 21%. As you’ll be able to see within the graph beneath, there’s little exterior these two choices.

Source: UKIE's UK Games Industry Census, Understanding diversity in the UK games industry workforce, Dr. Mark Taylor

Supply: UKIE’s UK Video games Business Census, Understanding variety within the UK video games trade workforce, Dr. Mark Taylor

“I believe the video games trade because it’s grown up has been reliant — actually for a protracted interval — on graduate expertise as a result of it wants individuals so rapidly, it has been increasing so rapidly and that is the one manner you’ll be able to fulfill these roles in that point scale,” Habgood says. “However hopefully as we go ahead we’ll be capable to assume extra long run and introduce alternatives at a youthful stage.”

Sangha additionally factors out that some studios may even see bringing in a graduate as a simple resolution to their recruitment want, with out essentially setting apart the sources to develop that expertise as soon as they’re in.

“You are not doing proper by your current crew or that graduate if you cannot assist them and that is actually necessary,” she says. “It is not simply throwing them in on the deep finish. It is actually about giving them that chance in order that they will develop. There’s a dedication of time to have the ability to make this work.”

How can UK studios assist enhance the UK expertise pipeline

  • Have interaction with college students of all ages to ship aspiration

Sumo’s purpose, which the crew believes different studios must be following, is to create new entry factors into the trade. And that includes speaking to college students of all ages, from faculty age to college stage, to point out them what working in video games truly means.

“It is all about delivering aspiration to an space the place it does not presently exist”

Kieran Holland

“It is all about delivering aspiration to an space the place it does not presently exist,” Holland says. “So we have now to assume in another way about: how can we put the door to entry there? We have got simply to speak to highschool, individuals who might doubtlessly be our builders of the longer term. The pool of accessible abilities is our problem and we all know that we battle to recruit expertise — all studios battle to recruit skilled people who they want. So we have to construct expertise.”

Holland needs studios would decide to going into plenty of faculties yearly to speak about alternatives in growing careers in video games. That will additionally assist convey that video games is a powerful trade, as dad and mom and lecturers are additionally usually misinformed about that facet.

“It hasn’t but received the status as a spot the place you’ll be able to construct a rewarding, safe profession — each of that are true. I believe quite a lot of dad and mom [and] lecturers on the market aren’t conscious of the alternatives there are in growing a profession in gaming. It is on us to work collectively to begin delivering aspiration.”

The Sumo Digital Academy welcomed its first trainees in 2020

The Sumo Digital Academy welcomed its first trainees in 2020

It is also about exhibiting the big selection of jobs accessible within the trade. Sangha factors out that many younger individuals nonetheless incorrectly imagine that coding is all there may be to working in video games. And that is as a result of the UK trade lacks advocates to point out what else there may be.

“That is a factor that we as an trade actually need to get throughout to individuals,” Sangha says. “The trade within the UK remains to be comparatively younger however it’s a worthwhile trade. Some kids are taking part in some video games however don’t know they’re made within the UK. What we have to do as an trade, is for individuals to grasp that truly there are such a lot of sensible superb issues which might be occurring right here and you do not have to be a coder.

“What we want is for individuals to grasp that there are such a lot of sensible issues which might be occurring right here and you do not have to be a coder”

Harinder Sangha

“I am born and bred from Leamington Spa the place we all know there are such a lot of studios [but] I by no means knew. I grew up on a council property, [I’m] feminine, Asian — my dad and mom, if I might have mentioned ‘I actually wish to go work in video games’ they’d been like: ‘I do not assume so’. And that is the factor! Leamington is a small city, among the greatest video games which might be on Xbox are popping out of Leamington Spa, and but, individuals simply do not realise — individuals with a background much like mine, you’d by no means get to them. That is what we have to do to get to them.”

Holland takes artists for instance of a occupation the place the video games trade isn’t seen as a possible profession path.

“There are such a lot of essentially robust artists who don’t realise that they may do what they do as a profession,” he says. “Whether or not it is concepting, design, 3D, setting — there’s so many alternatives. And there is quite a lot of expertise on the market that we’re not even conscious of and so they’re not conscious of. There is a disconnect. And it is that stuff: having conversations with lecturers and fogeys to ship aspiration for these people to grasp that there’s a actual profession.”

  • Create apprenticeship programmes

A technique sport firms can diversify entry to the video games trade, and one which Habgood is kind of obsessed with, is thru apprenticeship programmes.

It is on the core of the Sumo Digital Academy, which goals at making a template for paid apprenticeships within the trade. It presently focuses on sport programming and took on its first trainees in September 2020.

In case you’re unfamiliar with apprenticeship ranges, it is price mentioning that every stage has an schooling equal:

  • Stage 2 = GCSE
  • Stage 3 = A Stage
  • Ranges four and 5 = basis levels or increased schooling certificates equivalents
  • Stage 6 = Bachelor’s diploma
  • Stage 7 = Masters diploma
Jacob_H_Portrait

Sumo Group’s director of schooling partnerships Jacob Habgood

“We have created a Stage 7 sport programming apprenticeship and the thought with that’s to have the ability to carry individuals in from completely different graduate backgrounds,” Habgood says. “So, we have already recognized on this dialog that there’s an imbalance by way of gender and by way of basic background from video games programs — even maths and physics levels typically have a greater gender steadiness than video games programming levels. So the power to take a proficient physicist or mathematician and produce them via a programme through which they learn to use the best sorts of sport engines and programming languages that we use within the video games trade, permits us to diversify that expertise pool.

“And that is one thing that is been developed with companions for the entire trade. So as soon as apprenticeship packages are in place, it isn’t one thing that Sumo owns, it is one thing that any video games firm within the UK might use to attract down on their apprenticeship levy and ship their college students to an apprenticeship program on these traces.”

Sumo’s programme provides its trainees expertise, coaching and get them growing initiatives and dealing collectively in a studio-like setting in order that they have the abilities that they should acquire junior programming roles.

Whereas this particular instance applies to these with a graduate background, decreasing apprenticeships ranges would assist so much with diversifying the UK expertise pool, Habgood says, and that’s one thing firms ought to look into doing.

“We have accomplished the Stage 7 apprenticeships for undergraduates as a result of we all know there’s quite a lot of expertise on the market and it is a good path to pursue. However I believe in the long run for the trade, if you happen to might have Stage Three apprenticeships, Stage four apprenticeships, then that might actually begin to herald a extra numerous and thrilling expertise.”

  • Have internship programmes

Internships are additionally a useful option to attain expertise. And to illustrate it loud and clear so there is not any ambiguity: you want to pay your interns. Unpaid internships perpetuate privilege, and in case your aim is to carry individuals from underrepresented backgrounds, not paying them just isn’t the best way. It’s also humanely the best factor to do.

You possibly can be taught extra about this in our article about accessing the video games trade from a working class background.

Sumo-owned The Chinese language Room debuted a six-month internship programme in 2020, which does not require prior expertise in video games and pays at a fee equal to everlasting entry roles. It presents versatile hours for individuals who cannot commute simply or produce other tasks as carers. The concept was to take away as many obstacles as doable to achieve candidates from underrepresented backgrounds.

Kieran

Sumo Digital’s group expertise acquisition supervisor Kieran Holland

“[With] the internship, the thought is that we entice that expertise, put them via some actually attention-grabbing initiatives that illicit a few of their expertise, for us to evaluate whether or not they’re going to achieve success of their function in future and, in that case, we’ll supply them a full-time function on the finish of it,” Holland explains. “And naturally — I in all probability overuse this time period however I will say it once more — placing the door to entry in other places.

“The end result was we introduced in a few people from very poor backgrounds, areas [where] a profession in gaming wasn’t an apparent selection. And now they will be going again to their communities, doubtlessly constructing a profession in gaming, and it would be seen as a chance within the areas the place it beforehand wasn’t.”

The quick time period acquire for the corporate working internships is minimal, Holland warns, however in the long run, it is a useful software. He provides that it is an “terrible lot of labor” to set it up.

“The doorways to entry are so mature the place they presently exist, it is fairly straightforward to place an advert on jobs.gamesindustry.biz and get the candidates that you just want. It is far more fragmented if you wish to put the chance out into areas the place it does not presently exist. So ensuring that we’re opening up and concentrating on as large as we are able to is a problem. [You want to make] it as honest as doable — as a result of that is being inclusive of all underrepresented teams. So there’s quite a lot of prep work by way of getting the roles in entrance of individuals at faculties in possibly much less prosperous areas.

“Ensuring that we’re opening up and concentrating on as large as we are able to is a problem”

Kieran Holland

“After all, the most important problem is ensuring that we have the time, useful resource and area to have the ability to upskill the people we usher in. The entire level of this train is not to get a token variety of candidates out of it on day one… it is a long run aim.

“This can be a pilot basically, to say: does it work? And if it does, we will wish to do that on an annual foundation, and doubtlessly at extra studios and never simply the Chinese language Room. The aim being that we attempt to get candidates who would not be making use of for our current roles, would not be making use of via to the [Sumo] Academy, or via the graduate schemes, or via any of our junior positions as a result of both they would not really feel that they’ve the abilities, do not feel they’re succesful, or just do not know that it is a chance for them, as a result of they have not seen this profession put in entrance of them earlier than.”

  • Use the best instruments to focus on a wider expertise pool of skilled expertise

Lastly, in terms of reaching out to skilled expertise, you as soon as once more have to have the best processes in place to be sure to are as inclusive as doable.

“Now we have to activate as many faucets as we probably can to have interaction expertise, whether or not that is simply promoting, focused sourcing, utilising recruitment businesses,” Holland says. “However once more, inside that, it’s important that we’re placing throughout an advert, a job spec, an method that does not exclude sure teams, whether or not we try this inadvertently or not. It is actually necessary that we simply make certain we take the best steps to do this.”

“We all know we lose some actually good expertise if we permit candidates to sift themselves out as a result of they might not really feel that they are proper”

Kieran Holland

One of many instruments you should utilize is Kat Matfield’s gender decoder for example, which flags gender-coded language in your advertisements. Sumo additionally makes use of it to make sure that its job adverts do not comprise an excessive amount of granularity across the expertise and expertise required, which might put candidates off, as individuals from marginalised genders or backgrounds are inclined to really feel they should tick as a lot of these packing containers earlier than making use of.

We need to have the ability to make that call as to whether or not they’re the best match moderately than them doubtlessly sifting themselves out,” Holland says. “We all know we lose some actually good expertise if we permit candidates to sift themselves out as a result of they might not really feel that they are proper, whereas truly we see them and assume that they will doubtlessly be a extremely good match.”

  • Be sure to have the best retention instruments

It is price mentioning that delivering aspiration to a wider vary of individuals and bringing in variety is just one half of the journey. You should construct a tradition that’s secure and inclusive, or all of your efforts can have been in useless.

“One of many issues that we do take a look at from a studio perspective is guaranteeing that after they’re right here, they keep right here,” Sangha says. “We have to guarantee that issues are in place [such as] versatile working instances. [Within Sumo Group] we are able to determine ourselves what our working hours are and we determined in Leamington to carry our core hours from 10am until 4pm. However bringing that to 3pm, for example, simply signifies that as dad and mom we are able to choose our children up. There’s this entire stage of understanding and that is one thing, as a gaggle, we work actually exhausting on that belief.”

If you wish to be taught extra about how one can retain your employees, we have now a GamesIndustry.biz Academy information for that proper right here. Specializing in retention and promotion, we additionally not too long ago regarded on the limitations going through Black expertise in video games.

Recommendation for studios with fewer sources

The crew at Sumo is conscious of the privilege that comes with working for a giant firm, giving them entry to extra sources. Holland jokes that he all the time needs there have been extra, however can also be eager to present recommendation on the place to begin if you’re a smaller agency.

“If you wish to encourage bringing variety into the studio, [you’ve] received to do it in a manner that is manageable, significant, and can truly make a distinction. So a smaller studio it is nearly once they’re in ensuring that you have the best processes in place — the best coaching, mentoring, learning, instruments, no matter it is likely to be, to carry [new recruits] on top of things.”

Have a look at growing swimming pools that are not presently tapped for expertise, and hold your efforts centered. Making an attempt to unravel each the gender imbalance and the abysmal lack of illustration of individuals of color in video games on the similar time could be a problem for example.

“It is extremely difficult — with the ability to get out to these people is admittedly fragmented,” Holland continues. “There isn’t any straightforward path to get to them. It took an terrible lot of labor once we began — quite a lot of late evenings to get our internship in the best place.

“Do not put a lot stress on your self by feeling that it’s important to do every little thing , as a result of it is simply too massive a problem”

Harinder Sangha

“And so my recommendation could be doubtlessly to take a look at their studio and the place there possibly is underrepresentation, and simply guarantee that they are not over committing, as a result of they should make this work. So just remember to’re being real looking about what you’ll be able to ship and to what scale.”

You possibly can’t do every little thing , Sangha agrees, saying it’s important to break it out into small steps and attain out to the suitable organisations for assist.

“If you wish to enhance the ladies that you’ve in your groups, attain out to Girls in Video games and see what they will do for you,” she says. “Begin going via social media websites, that is a extremely fast straightforward low cost factor to do. Whether it is attempting to hit different teams, so the BAME neighborhood for example, do your analysis and go see [them].

“Discover the locations the place you’ll be able to go regionally. Do not put a lot stress on your self by feeling that it’s important to do every little thing , as a result of it is simply too massive a problem. It is too massive a problem for us, so if you happen to’re a small crew you are not gonna achieve a manner that you just wish to and you will really feel you failed when it isn’t your fault. You should return and simply attempt to deal with separately.”

Habgood provides that it is also a studying course of — you want to be able to fail to some extent and learn to get higher as you go.

“It is not like you will get it sorted in a single yr, it is one thing that it’s important to always refine and suggestions into. I believe we have nonetheless received so much to be taught as an trade about how one can method that in the best manner. There are some unbelievable initiatives, boot camps, coaching and programming and issues which might be happening within the trade that I believe will assist. However we’re nonetheless all growing this and it is going to take a couple of years to get there.”

Concluding our chat, Holland implored each studio to steadiness their quick recruitment wants with future targets.

“So our quick want is a grad, it is a programmer, it is a senior artist. However the pool of accessible expertise is rising at a sure velocity; the trade is rising at a a lot sooner velocity. The problem we had been experiencing two years in the past I believe is far more acute now. And I anticipate it can proceed to be extra acute. It is on all of us to exit, ship the aspiration that the gaming trade is a extremely legitimate profession selection and that may drive a a lot larger pool of accessible expertise for us all to fish from sooner or later.”

function runGoogleAnalytics(anonymous) {

if (window.gaDone) return;

(function(i,s,o,g,r,a,m))(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

var args = {
“trackingId”: “UA-5699723-1”,
“cookieDomain”: “.gamesindustry.biz”
};

if(anonymous) {
args[“storage”] = “none”;
}

ga(‘create’, args);
ga(‘require’, ‘displayfeatures’);
ga(‘require’, ‘linkid’, ‘linkid.js’);

if(anonymous) {
ga(‘set’, ‘anonymizeIp’, true);
}

ga(‘set’, ‘dimension5’, ‘europe’);
ga(‘set’, ‘dimension6’, ‘none’);

ga(‘set’, ‘dimension1’, ‘academy’); ga(‘set’, ‘dimension2’, ‘education’); ga(‘set’, ‘dimension3’, ‘Marie Dealessandri’); ga(‘set’, ‘dimension4’, ‘no’);
ga(‘set’, ‘dimension12’, ‘no’);

ga(‘send’, ‘pageview’);

if ( window.location.href.substr(-11) == “#justposted” ) {
ga(‘send’, ‘event’, ‘Comments’, ‘Posted’, ‘2021-03-30-whats-wrong-with-the-uk-talent-pipeline-and-how-to-improve-it’, {
‘dimension1’: ‘academy’,
‘dimension2’: ‘education’,
‘dimension3’: ‘Marie Dealessandri’
});
}

window.gaDone = true;

}

function runComscore() {
var _comscore = _comscore || [];
_comscore.push({ c1: “2”, c2: “8518622” });
(function() {
var s = document.createElement(“script”);
el = document.getElementsByTagName(“script”)[0];
s.async = true;
s.src = “https://sb.scorecardresearch.com/beacon.js”;
el.parentNode.insertBefore(s, el);
})();
}
function runFacebookPixel() {

!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=’2.0′;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,’script’,’//connect.facebook.net/en_US/fbevents.js’);

fbq(‘init’, ‘1863210500478936’);
fbq(‘track’, ‘PageView’);

}

function runLinkedinInsights() {

_linkedin_partner_id = “2840722”;
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);

(function() {
var s = document.getElementsByTagName(“script”)[0];
var b = document.createElement(“script”);
b.type = “text/javascript”;b.async = true;
b.src = “https://snap.licdn.com/li.lms-analytics/insight.min.js”;
s.parentNode.insertBefore(b, s);
})();

}

function runTwitterPixel() {

!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version=’1.1′,s.queue=[],u=t.createElement(n),u.async=!0,u.src=”https://static.ads-twitter.com/uwt.js”,
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,’script’);

twq(‘init’,’o5k31′);
twq(‘track’,’PageView’);

}

function triggerMormont() {
mormont(‘set’, ‘section’, ‘article’);
mormont(‘set’, ‘language’, ‘en’);
mormont(‘set’, ‘published’, “2021-03-30T12:15:00+01:00”);
mormont(‘set’, ‘article_type’, “article”);
mormont(‘set’, ‘author’, “Marie Dealessandri”);
mormont(‘set’, ‘tags’, [‘tag:education’])
mormont(‘set’, ‘is_logged_in’, “1”);
mormont(‘send’, ‘pageview’);
}

function runMormont() {
var s = document.createElement(‘script’);
s.type=”text/javascript”;
s.async = true;
s.onload = function() { triggerMormont() };
s.src=”https://cdn.gamer-network.net/2019/mormont/v2.25.0/mormont.js”;
document.getElementsByTagName(‘head’)[0].appendChild(s);
}

const frames = window.frames;
for (let i = 0; i < frames.length; i++) {
frames[i].stop();
}

function sandboxIframes() {
const iframes = jQuery('iframe[src]:not([data-src])');
jQuery.each(iframes, function() {
const iframe = jQuery(this);
const src = iframe.attr('src');
// Youtube iframes are exempt from being sandboxed
// as long as we swap them for the Privacy Enhanced player
if (src.match(/^(https?:)?//(www.)?youtube.com/embed//i)) {
iframe.attr('data-src', src);
iframe.attr('src', src.replace('youtube.com', 'youtube-nocookie.com'));
} else {
iframe.attr('title', 'Please accept cookies to see this iframe.');
iframe.attr('data-src', src);
iframe.removeAttr('src');
}
});
}

function sandboxScripts() {
const scripts = jQuery('script[src]:not(.ignore-script)');
jQuery.each(scripts, function() {
const script = jQuery(this);
script.attr('type', 'text/plain');
script.attr('data-src', script.attr('src'));
script.removeAttr('src');
});
}

function runIframes() {
const iframes = jQuery('iframe[data-src]');
jQuery.each(iframes, function() {
const iframe = jQuery(this);
iframe.attr('src', iframe.attr('data-src'));
iframe.removeAttr('title');
iframe.removeAttr('data-src');
});
}

function runScripts() {
const scripts = jQuery('script[data-src]:not(.ignore-script)');
jQuery.each(scripts, function() {
const script = jQuery(this);
script.attr('src', script.attr('data-src'));
script.attr('type', 'text/javascript');
script.removeAttr('data-src');
});
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here