I am trying to use Optimizely.com which requires a CDN based script. I have including the script tag within a <head> tag.
I am then activating it in my Template.<some template>.onRendered , however it seems like the object defined in the CDN script is not ready when the page renders.
Is there a best practices approach to dealing with this?