Skip to content

Make Dreact serve different JS bundles depend on what's the browser request them #26

@radion-chernyakov

Description

@radion-chernyakov

Why is it matters:

  • allows you to ship only polyfills that browser really need
  • makes modern browsers be able to use native syntax instead of transpired into old one (as class or ?. operator)

All these things reduce JS bundle size which improves client performance metrics

Todo:

  • ? migrate to next.js first
  • make different browserslist ENVs based on users statistic
  • make separate JS bundles for each ENV
  • serve different JS bundles based on useragent on same request path (doesn't work with CDN)
    OR
  • serve different HTML with different paths to JS bundle based on useragent

App faster -> users happier -> client happier :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions