You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When more than one critical CSS file is registered (for example, one from a parent theme and one from a child theme) the dependencies are not respected. They get output in the order in which add_asset() is called, not according to their dependencies.
In the code below, critical-first should be output first because it's a dependency of critical-second, but critical-second gets output first because that's the order in which add_asset() is called.
When more than one critical CSS file is registered (for example, one from a parent theme and one from a child theme) the dependencies are not respected. They get output in the order in which
add_asset()
is called, not according to their dependencies.In the code below,
critical-first
should be output first because it's a dependency ofcritical-second
, butcritical-second
gets output first because that's the order in whichadd_asset()
is called.The text was updated successfully, but these errors were encountered: