Automattic / Automattic/jetpack

Serve React bundle and admin CSS bundle remotely

Open
#5,425 11 comments 1 reaction 0 assignees View on GitHub
[Focus] Performance [Pri] Low [Status] Proposal Enhancement Epic
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

## The plan

Serve both our React JS bundle(s) remotely as well as the accompanying CSS. Serving these remotely could speed up the loading of the React bundle on sites, decrease load on hosts, allow for bug fixes without the need for a point release (also decreasing load on hosts), and allow for us to make/undo changes depending on feedback from the people using Jetpack.
## Requirements
- [ ] Needs to serve JS bundle from our CDN.
- [ ] Needs to serve admin CSS from our CDN.
- [ ] Need to be able to manage versions (and cache bust)
- [ ] Needs to be a way to opt out of using the remote bundles.
- [ ] Needs to have fallbacks for both that are bundle with JP. Fallbacks should be used in dev mode, if our CDN is down/blocked, or if a user opts out.
## Project management

We may use one of these new fangled Github projects to manage this. I'll leave that decision up to those assigned to work on this task.
## Designs

TBD. We need to design a way for people to opt out (or in). It's probably going to be a setting somewhere. _shudder_

.

```
updated Wed Oct 26 17:01:07 PDT 2016

♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟
… … … … … … … …
… … … … … … … …
… … … … ♙ … … …
… … … … … … … …
♙ ♙ ♙ ♙ … ♙ ♙ ♙
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖

♚'s turn.
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by resolving the TBD opt-out design and defining CDN versioning, cache busting, fallback, and development-mode behavior; done means both React JS and admin CSS bundles meet every listed requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react
Domain
cloud, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.