Skip to content

tmeasday/meteor-HTML5-History-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor HTML5 History API

If your Meteor app/site uses routes (e.g: IronRouter) and needs to run in an older browser (pre-HTML5) you will need a Polyfill for HTML5 History.

This package loads a file called history.js into your app giving older browsers the HTML5 History API

Install

mrt add HTML5-History-API

(That's it. Back to building your awesome Meteor App!)


About This Package

This package loads HTML5 History API which uses history.js.

Most of the time you will not interact directly with the History API by writing History.pushState in your app (IronRouter does that for you), but if you ever want to learn more about (re-)writing history see below.

Background on HTML5 History API

Modern ("Single Page") Web Apps change the url in the browser and display fresh content without refreshing the page.

In order to remember which pages have been visited (and thus be able to use the browser's back/forward button) the HTML5 History was added.

Demos: http://html5demos.com/history

Internet Explorer! 😢

Sadly, 20% of internet users are still stuck on Internet Explorer pre v.10 (and older versions of both IOS and Android's stock browsers do not support HTML5 History) so in order to give these visitors the single-page-app experience you need to include this package.

Can I Use - History

See: http://caniuse.com/#search=history

Further Reading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published