[wp-trac] [WordPress Trac] #54884: Load scripts conditionally to reduce page loading and processing time
WordPress Trac
noreply at wordpress.org
Mon Jan 24 06:53:41 UTC 2022
#54884: Load scripts conditionally to reduce page loading and processing time
---------------------------+--------------------------------------
Reporter: galbaras | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: | Focuses: javascript, performance
---------------------------+--------------------------------------
Comment (by galbaras):
I totally agree about limiting browser support.
Admittedly, I'm not a front-end developer, and when starting this ticket,
I was hoping to get better ideas from the people who are phenomenal at it.
I use caching plugins everywhere, so a good solution for me will take them
into account.
One way to do it is by laying the foundation for page optimisation plugins
to combine some scripts in a special way, by adding script attributes or
adding the scripts to the page within some wrapping (comment or special
tag) that the plugins can recognise.
If this is done in a backward-compatible way, adoption can be gradual
without any damage to other sites.
As for `IFRAME_REQUEST`, can you please explain further how to use it to
dequeue `wp-embed`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54884#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list