Seldaek / slippy

HTML Presentations
814 stars 89 forks source link

Switch to use the native history API #9

Open stof opened 13 years ago

stof commented 13 years ago

I often have issue when using http://slides.seld.be/ with the jquery.history.js file that get aborted after 20s or so, and so breaking slippy. As modern browsers now support the history API, it could be better to use it instead (and so no issue about loading a file for them) and fallback to a polyfill for old browsers (IE...). What do you think about it ?

Seldaek commented 13 years ago

I guess relying on the history API would be ok, as long as it can fallback on the current solution. I'm not a fan of excluding older browsers.

I'm not sure I get your problem though, jquery.history.js works just fine here.

stof commented 13 years ago

Well, for me, the request is aborted after about 20s for half of the request I do (and when it fails, it is generally failing for a while thus making it unusable). I don't know why this particular file timeouts (I never has issues with the others).