On the fly preload bundle generation

Open
#324 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Start by reproducing the openui5-sample-app case with ui5 serve -o and inspect the affected ui5-builder and ui5-server components. Define how feature flags select projects for optimization and verify that the served project provides library-preload.js and Component-preload.js bundles with fewer resource requests.

Written by the indexing model from the issue text.

Description

module/ui5-server

Expected Behavior

ui5-server should be able to generate library-preload.js and Component-preload.js bundles on the fly. This should speed up overall loading time of a served project in the browser. In addition, this should allow for proper performance testing during development by simulating the resource structure available in the production environment.

This should be controllable with one or more feature flags. It might make sense to influence which projects are being optimized. Possibly only those not being actively developed/changed.

Current Behavior

As the OpenUI5 npm dependencies do not contain any preload bundles, currently all required resources are loaded with single requests.

Steps to reproduce the issue

  1. Setup the openui5-sample-app
  2. Execute ui5 serve -o
  3. Check browser network trace for lots of requests and long overall loading time

Context

  • OS/Platform: all
  • Node.js Version: all
  • npm Version: all
  • Browser (if relevant): all

Affected components

Dominant language
JavaScript
Stars
511
Forks
83
Avg merge
1d 5h
Merged PRs (30d)
55

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/cli

All issues in UI5/cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.