instantpage / instant.page

Make your site’s pages instant in 1 minute and improve your conversion rate by 1%
https://instant.page
MIT License
6.04k stars 205 forks source link

Change closure syntax for older browsers #45

Closed markvaneijk closed 5 years ago

markvaneijk commented 5 years ago

Although this package is not meant to be working for older browsers who don't have preload support. It does error out on older browsers like for example Internet Explorer 11.

To avoid breaking websites on IE 11 while using this package, we need to change the closure syntax to avoid parse errors and that Javascript won't be evaluated further in these browsers. Hereby I changed it, and with this syntax I get no errors in IE 11.

dieulot commented 5 years ago

This package is not meant to be loaded by older browsers. The instruction is to load it as a module with Githubissues.

  • Githubissues is a development platform for aggregating issues.