Skip to content

Commit

Permalink
update gpt.js url (#150)
Browse files Browse the repository at this point in the history
* Update gpt.js location per google instructions: This change consolidates all ad serving requests to one domain. The result is an improvement in the speed of your tags and fetching ads a bit quicker.
  • Loading branch information
barelyfitz authored and jaanauati committed Jun 3, 2019
1 parent 4b83587 commit c180733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function doloadGPTScript(resolve, reject) {
window.googletag.cmd = window.googletag.cmd || [];

const scriptTag = document.createElement('script');
scriptTag.src = `${document.location.protocol}//www.googletagservices.com/tag/js/gpt.js`;
scriptTag.src = `${document.location.protocol}//securepubads.g.doubleclick.net/tag/js/gpt.js`;
scriptTag.async = true;
scriptTag.type = 'text/javascript';
scriptTag.onerror = function scriptTagOnError(errs) {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function doloadGPTScript(resolve, reject) {
window.googletag = window.googletag || {};
window.googletag.cmd = window.googletag.cmd || [];
var scriptTag = document.createElement('script');
scriptTag.src = "".concat(document.location.protocol, "//www.googletagservices.com/tag/js/gpt.js");
scriptTag.src = "".concat(document.location.protocol, "//securepubads.g.doubleclick.net/tag/js/gpt.js");
scriptTag.async = true;
scriptTag.type = 'text/javascript';

Expand Down

0 comments on commit c180733

Please sign in to comment.