#3288 closed enhancement (no action required)
Load core js/css in the same way as WP script-loader.php does
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
If we load core JS/CSS in the same way as WP core script-loader.php does, we can avoid having to IF and checking for SCRIPT_DEBUG everywhere.
Change History (2)
Note: See
TracTickets for help on using
tickets.
I'm not 100% sure what this ticket is suggesting. Is the idea that we should register all our scripts in a central location, and only register them later? Or is it that we should be using the
'wp_default_scripts'
hook? I guess I don't see much of an advantage to centralizing things. Instead of doing SCRIPT_DEBUG checks, we'd end up doingbp_is_active()
checks. Or we could do some sort of fancy subhook system, but it seems like there's not much to be gained in terms of efficiency with our fairly limited number of assets.Going to close this one. DJPaul, if I've misunderstood, or you strongly disagree, please feel free to reopen and set me straight ;)