Is it possible to connect to PubNub to receive messages while assets on a web page are still loading?

On web pages that contain a lot of assets or slow loading assets, it is sometimes desirable to establish a connection to PubNub and start receiving messages prior to a complete web page loading. On some browsers, if the PubNub subscribe call is made in the midst of a page load, the browser tab may continue to display the loading animation, even after page load, due to the outbound connection made for the subscribe call. To avoid this, PubNub by default waits for the page to load, then fires the subscribe call. The way to work around this default behavior is to manually fire PUBNUB.ready().