Automattic / Automattic/nginx-http-concat

Group common scripts

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
120
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Concat can be a little overzealous in cases where a script or style is enqueued conditionally. Say a script is used on one page. Ideally we wouldn't serve a different Javascript bundle on that page that is the same as every other page with the one extra script added. The bundle that loads on every other page is most likely already cached in the user's browser. We really just need to serve the additional script separately (or maybe inline?).

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the plugin's concatenation flow to determine how conditionally enqueued scripts and styles are currently grouped. Define how shared bundles, page-specific resources, caching, and optional inlining should behave, then verify the result against pages with and without the additional resource.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, wordpress
Domain
performance, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.