thybag / PJAX-Standalone

A standalone implementation of Pushstate AJAX, for non-jquery webpages.
203 stars 42 forks source link

Fix .connect() method to work if window.load has already been called #5

Closed JonDum closed 10 years ago

JonDum commented 11 years ago

I found that pjax wasn't even initializing if pjax.connect() was called in a .ready()-like function because it waits on a load event which might have been called way earlier.

thybag commented 10 years ago

Ah, good catch. Will update with your changes :)