• Resolved clonemykey

    (@clonemykey)


    In the quest to get better page load times we’ve implemented a lot of changes and one of them is trying to defer/async Jquery since Google Lighthouse is always complaining about it. The only code on our frontpage that requires Jquery immediately is this affiliate plugin. Is there a way to delay calling this until the page further loads or not use Jquery at all? When we defer Jquery we get an uncaught reference error.

    I imagine it’s crucial for tracking purchases. If nothing else, could I switch to using a unique coupon instead then delete this piece of JS? I can add unique coupon codes via a url parameter — this would be the last resort

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for contacting us. I have submitted a message to the developers to investigate further your request.

    Thank you

    Plugin Author wp.insider

    (@wpinsider-1)

    jQuery is not required for tracking. It is mainly used for the affiliate portal area (for example: on the registration form). The query is enqueued via the following function (which is the correct way to include jquery):

    wp_enqueue_script

    You should be able to use a plugin that intercept it and push all the enqueues to the footer area.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Jquery Settings’ is closed to new replies.