The size of
unpoly.js has been reduced significantly. It now weighs 41.6 KB (minified and gzipped).
To achieve this
If you need support for Internet Explorer 11 you can either use a transpiler like Babel or use Unpoly's ES5 build. To use the ES5 build, load
unpoly.es5.js instead of
unpoly.js. There is also a minified version
Like in earlier versions of Unpoly, supporting IE11 requires a polyfill for the
Promise API. No additional polyfills are required by this version.
Microsoft is going to retire IE11 in June 2022.
After that date Unpoly will remove support for IE11 and no longer provide ES5 builds. It may be possible to keep supporting IE11 through polyfills and transpilation, but the Unpoly maintainers will no longer support or test with IE11.
This step will allow Unpoly to use modern web APIs and reduce its bundle size even further.
<body> instead of the
:main element. You can customize this behavior in
up.util.times() has been deprecated. Use a classic
for statement instead.
up.Params.wrap() has been removed without replacement.