details-element-polyfill VS history.js

Compare details-element-polyfill vs history.js and see what are their differences.

history.js

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality. (by browserstate)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
details-element-polyfill history.js
1 3
227 10,762
- 0.0%
0.0 0.0
10 months ago about 2 years ago
JavaScript JavaScript
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

details-element-polyfill

Posts with mentions or reviews of details-element-polyfill. We have used some of these posts to build our list of alternatives and similar projects.
  • The details element
    1 project | dev.to | 14 Feb 2021
    Finally, there is no support in Internet Explorer, which is becoming less and less of a problem every day. There is a polyfill, but I would simply let the content display completely. Unless it's absolutely necessary, sending more JavaScript to less capable browsers just for consistency's sake doesn't make much sense to me.

history.js

Posts with mentions or reviews of history.js. We have used some of these posts to build our list of alternatives and similar projects.
  • Implementation of History.js
    1 project | /r/codehunter | 10 Apr 2023
    I am trying to implement History.js for my ajax site so that I can use forward and back buttons and even bookmarks. However the example @ https://github.com/browserstate/History.js/ has me a bit confused as into how to implement it. Does anyone have a simple tutorial or example on how to use this. An example we can use to start the example is a navigation link such as
  • How do I actually use history.js on my site
    1 project | /r/codehunter | 31 Aug 2022
    I've read all the posts about history.js on stackoverflow including, this, this and this and at looked the source code but as a newcomer to javascript/jquery I'm having trouble figuring out how to actually implement to have html 5 history support and fallback to support html4 browsers such as ie8/9. As I can appreciate the UX benefits from presenting consistent URL's as much as possible, how this solves deep linking and allows for bookmarking I want to implement but I get a bit lost when trying to actually use this on my site.
  • Popstate on page's load in Chrome
    1 project | /r/codehunter | 10 Apr 2022
    The problem is well-known — Chrome and Firefox treat that popstate event differently. While Firefox doesn't fire it up on the first load, Chrome does. I would like to have Firefox-style and not fire the event up on load since it just updates the results with exactly the same ones on load. Is there a workaround except using History.js? The reason I don't feel like using it is — it needs way too many JS libraries by itself and, since I need it to be implemented in a CMS with already too much JS, I would like to minimize JS I am putting in it.

What are some alternatives?

When comparing details-element-polyfill and history.js you can also consider the following projects:

loading-attribute-polyfill - Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.

jsbi - JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.

rangeslider.js - 🎚 HTML5 input range slider element jQuery polyfill

polyfill - Set of all Javascript polyfills

Sugar - A Javascript library for working with native objects.

core-js - Standard Library