Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
OpenAI suggested the following labels for this issue:
[Feature Group] Other Infrastructure: The issue pertains to the underlying infrastructure related to file handling, specifically the limitations of concatenating files.
[Feature] Concat: This label is directly relevant as the issue discusses the concatenation of JavaScript and CSS files and surpassing the file limit.
[Feature] Asset CDN: This relates to the delivery of assets like JS and CSS, which is impacted by the issue of concatenation and file limits.
There's a limit of a 150 files when doing concatenation:
https://github.com/Automattic/jetpack/blob/52e377bdde5e87bfc088358a1869c9d6535adbbb/projects/plugins/boost/app/lib/minify/functions-service.php#L153
If there are more than 150 files, the user would get a 400 error and their page would be broken:
https://github.com/Automattic/jetpack/blob/52e377bdde5e87bfc088358a1869c9d6535adbbb/projects/plugins/boost/app/lib/minify/functions-service.php#L202-L204
We should start a new chunk as soon as the limit is hit when creating the URL here:
https://github.com/Automattic/jetpack/blob/52e377bdde5e87bfc088358a1869c9d6535adbbb/projects/plugins/boost/app/lib/minify/Concatenate_JS.php#L248
https://github.com/Automattic/jetpack/blob/52e377bdde5e87bfc088358a1869c9d6535adbbb/projects/plugins/boost/app/lib/minify/Concatenate_CSS.php#L188