Hi everyone,

I'm diving into the common container code, i.e., the "container" feature, 
and I have some questions about what we're doing during initialization. 

In init.js#initializeGlobalVars(), we set some global variables..... makes 
sense, but the manner in which we are deriving them seems odd.  The code 
grabs all "script" elements from the document, takes the first one, 
creates a new shindig.uri from its src, then starts pulling query params 
off of it.  This works great if in your container page the script tag 
loading container.js is the first one.  If it is not, this breaks in a big 
way. 

I'm wondering if there is not a better way to do this.  Can we look for a 
script tag with a specific id and then fall back to the current method if 
we can't find a match? 

Thoughts?

Best regards,
-Stanton

Reply via email to