Git Product home page Git Product logo

Comments (3)

benjaminaigner avatar benjaminaigner commented on August 17, 2024

Good point...
Do you have experience with babeljs?
Would be interesting how the backwards compatibility will affect the file size.

from flipmouse-esp32.

klues avatar klues commented on August 17, 2024

Nowadays, after some more experience I wouldn't recommend babeljs anymore for this project because it would be an overkill. I think there are two reasons why this webapp doesn't run on old browsers:

  1. usage of ES6 syntax like arrow functions (e.g. list.filter(e => e.value === 1))
  2. usage of Promises

(1) could be simply fixed manually by just searching for => and replace it with function, so e.g. list.filter(function(e) {return e.value === 1})
(2) could be fixed by a Promise polyfill, e.g. https://github.com/stefanpenner/es6-promise

But I don't know if all of this is necessary. Currently on desktop the only non-supported browser is Internet Explorer and all current mobile browsers should be supported.
According to caniuse - arrow functions and caniuse - Promises about 97% of mobile users and 95% of desktop users are currently supported, so I think we could also just close this issue ;)

from flipmouse-esp32.

benjaminaigner avatar benjaminaigner commented on August 17, 2024

I think 95% are sufficient :-),
especially because:
-) we will provide an electron version
-) the WebGUI is used for configuration only (if the person does not have a new device, there should be an alternative around)

from flipmouse-esp32.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.