Has anyone managed to integrate pubnub and head.js properly?
Pubnub expect me to put their script at the bottom of the page with a <div>
tag just before it. This ensures that the ` tag is completely loaded by the time the javascript is called last.
The thing is, the rest of my application and pubnub are loaded through head.js so it keeps happening that the JS files are loaded before the pubnub subscribe/publish key and its subscribing/publishing to 'demo' rather than my own area of pubnub...
Is there any example anywhere or way for me to just screw off this <div>
element and pass in the credentials directly?