• Resolved saens

    (@saens)


    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)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @saens,

    Thanks for the feedback, we will look into this further.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    There will be a new major release early next year that will contain many optimizations and further tweaks to what you reported.
    For now, I will mark this thread resolved as we are working on it for the next release.

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Only load CSS & JS on relevant page’ is closed to new replies.