[PP-1] Use AST to identify resources fetched by CodeComponents so they can be preloaded

Created on 28 July 2025, 1 day ago

Overview

As identified in #3533458-12: Change CodeComponentDataProvider::getRequiredXbDataLibraries() to base its logic on information provided by the front-end rather than on naive string/regex matching β†’ we would like to identify resources needed by code components so we can add a <link rel="preload"> tag to the head of the page to improve performance.

In #3533458-19: Change CodeComponentDataProvider::getRequiredXbDataLibraries() to base its logic on information provided by the front-end rather than on naive string/regex matching β†’ a spike using @babel/traverse was attempted but this threatened to derail the main intent of that issue

As a result that functionality has been split into this issue.

Proposed resolution

User interface changes

✨ Feature request
Status

Postponed

Version

1.0

Component

Page builder

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024