[wp-trac] [WordPress Trac] #43308: Alter behavior load-scripts.php and load-styles.php to reduce potentially adverse scenarios
WordPress Trac
noreply at wordpress.org
Wed Feb 14 15:04:03 UTC 2018
#43308: Alter behavior load-scripts.php and load-styles.php to reduce potentially
adverse scenarios
---------------------------+------------------------------
Reporter: youngcp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 4.9.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by Clorith):
Really, what we need is a "new" approach altogether, see this ticket
spurred by Gutenberg and it's increased demand for JS:
https://github.com/WordPress/gutenberg/issues/4150
Basically users are already experiencing issues due to the scripts loader
on shared hosts where the file fails to load, and thus leads to lost
functionality on sites. The only fix in those cases is to disable
concatenation which requires editing `wp-config.php`, and we don't want
users to need to do this.
We could therefore focus this ticket on improving the various overheads
(memory, processing time and the likes) and hit two birds with one stone
(hopefully).
Some scenarios that cause the concatenation to fail in one way or another:
- Required too much memory
- Execution took too long
- Query string too long, some libraries not included
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43308#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list