igor-alexandrov / wiselinks

If Turbolinks are not enough for you. Wiselinks makes your application work faster.
MIT License
726 stars 93 forks source link

How to check for support #85

Closed amnesia7 closed 9 years ago

amnesia7 commented 9 years ago

I am currently applying wiselinks with html4: false

Is there anyway I can check whether the functionality will be available to a browser or not?

For instance, html4: false would could cause IE8 and IE9 to load the new page whereas better browsers would use wiselinks to get the new content.

I'd like to be able to check whether a browser will load the new page or not so I can decide how a function will work.

Thanks

amnesia7 commented 9 years ago

Or do I just do it using something like http://stackoverflow.com/a/6825002/1116573

amnesia7 commented 9 years ago

Nevermind, wiselinks.enabled() returns either true or false