The way things are setup now a page will have the following script tags (in order):

  • variable initialization for the googletag variable
  • include of external google js file
  • slotDefinition 1
  • slotDefinition 2
  • slotDefinition 3
  • ...
  • global settings

note: this list assumes #1577388: Ads not showing in IE8 (and Opera) will be committed

This could certainly be changed to have only three by using a static cache:

  • variable initialization for the googletag variable
  • include of external google js file
  • all slot definitions & global settings
CommentFileSizeAuthor
#1 1594948.patch2.2 KBbleen

Comments

bleen’s picture

Status: Active » Closed (won't fix)
StatusFileSize
new2.2 KB

turns out that due to the order of when preprocess_page is called, this is not feasible without some major hackery ... attached is a patch with what I tried. If anyone wants to take a swing, feel free but for now Im marking "wont fix"