MCPcopy Create free account
hub / github.com/ampproject/amphtml / loadScript

Function loadScript

ads/vendors/medianet.js:115–122  ·  view source on GitHub ↗

* Loads the script.

()

Source from the content-addressed store, hash-verified

113 * Loads the script.
114 */
115 function loadScript() {
116 let url = 'https://contextual.media.net/ampnmedianet.js?';
117 url += 'cid=' + encodeURIComponent(data.cid);
118 url += '&https=1';
119 url += '&requrl=' + encodeURIComponent(data.requrl);
120 url += '&refurl=' + encodeURIComponent(data.refurl);
121 writeScript(global, url);
122 }
123
124 /**
125 * Initializer.

Callers 1

initFunction · 0.70

Calls 1

writeScriptFunction · 0.90

Tested by

no test coverage detected