• This plugin loads two CSS files on every fronted page, including pages that have nothing to do with the shop or checkout:

    simple-sales-tax/assets/css/modal.css
    simple-sales-tax/assets/css/certificate-modal.css

    I’m not entirely sure what the certificate modal is or why it’s required on every page.

    Also as a head’s up, your website’s SSL certificate is expired.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brett Porcelli

    (@bporcelli)

    Thanks for reporting this, @joshf. I put an issue in our issue tracker and will get this fixed in the next release.

    Thanks also for notifying me about the SSL certificate. I am aware it has lapsed. Unfortunately the folks at TaxCloud have control over that site and despite being aware of the lapsed cert for a few weeks they have yet to address the problem ?? Just sent another message nudging them to implement a fix now.

    Thread Starter Joshua Fredrickson

    (@joshf)

    Great thanks!

    In the interim, I’ve dequeued those two stylesheets.

    add_action('wp_enqueue_scripts', function () {
        wp_dequeue_style('sst-modal-css');
        wp_dequeue_style('sst-certificate-modal-css');
    }, 100);

    I’m sure that will have some side effects. Where do the modal and certificate modal come into play? I didn’t see any mention of them in the docs/faqs.

    Appreciate the assist.

    Plugin Author Brett Porcelli

    (@bporcelli)

    The exemption certificate modal comes into play when you have the tax exemptions feature enabled on the SST settings page. If you don’t have tax exempt customers then you can safely dequeue those assets everywhere. If you do then you’ll want to make sure you keep those assets enqueued on the checkout page.

    Hopefully that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unnecessary assets loaded on frontend’ is closed to new replies.