Only load CSS & JS on relevant page
-
Hi,
I’ve read the other thread regarding this topic : https://wordpress.org/support/topic/only-load-css-on-relevant-page/However.
Currently the dequeueing happens only on pages other than is_checkout()
An endpoint page, like order-received, also doesn’t need these files enqueued (I would think).Therefore, can the dequeueing be expanded to something like
(is_checkout() && ( is_wc_endpoint_url( ‘order-received’ ) )
Since is_checkout also is true for this end-point.Maybe additional end-points as well. I haven’t looked into that yet.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Only load CSS & JS on relevant page’ is closed to new replies.