Framework7: nice to have Utils.promise.all

Created on 30 Mar 2018  路  5Comments  路  Source: framework7io/framework7

This is a:

  • [ ] bug
  • [X] enhancement
  • [ ] feature-discussion (RFC)
  • Framework7 Version: 2.x.

It is really helpful the utils.promise feature. I deleted bluebird (Promise polyfill) from my project thanks to F7 browser support but I had to bring it back because I needed the Promise.map() and Promise.all() functions

Feature Request

Most helpful comment

Worth checking I think

All 5 comments

Worth checking I think

Yeah would be very nice!

I go in the opposite route: the custom Promise implementation should be removed.

Recently there's a trend to ship less JS code as possible, being a cornerstone for Progressive Web App (PWA).

Since one of the goals of F7 v4 is to target PWA, i would remove the more code possible including the custom Promise implementation. Also it should be modular so features not required could be dropped. In my case for example i dont use Template7

This will allow devs that do not target old browsers provides a better experience. In the same time is pretty easy to support old browsers with polyfills or services like polyfill.io.

References:
https://medium.com/dev-channel/the-cost-of-javascript-84009f51e99e
https://github.com/ionic-team/stencil#polyfills (example of framework that targets small code size / PWA - from ionic team)

@blikblum
If you use tree shaking the size is irrelevant.
You'll only pack functions which are being used.

You'll only pack functions which are being used.

In this case no, because Utils will be used elsewhere and holds a reference even if not used by me.

Anyway this issue is irrevevant now since the custom promise was ripped from v4

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seme1 picture seme1  路  5Comments

J05HI picture J05HI  路  3Comments

oVerde picture oVerde  路  3Comments

M4ttscx picture M4ttscx  路  4Comments

mesutgok picture mesutgok  路  4Comments