• Resolved Gabriel

    (@rysgard)


    There are number of scripts enqueued to load in the head, of the webpage.
    My concern is the performance.
    Are they all necessary for plugin to work?
    Can they be limited to load only for admin areas, or they are required for the front-end as well.

    I wanted manually dequeue them, and then add them only for admin dashboard, but I am not sure if that would not break plugin functionality.

    https://wordpress.org/plugins/paypal-ipn/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Which scripts are you referring to? We’re usually pretty good about only enqueuing things when necessary, but maybe we missed some things.

    Thread Starter Gabriel

    (@rysgard)

    My site is loading 4 scripts related to Paypal-ipn:

    2 from the server:
    paypal-ipn-for-wordpress.js
    paypal-ipn-for-wordpress-public.js

    and 2 from CDN:
    jquery.dataTables.min.js
    dataTables.responsive.min.js

    It is not a huge issue. I was just wondering if they are required on the frontend?

    Plugin Contributor angelleye

    (@angelleye)

    I’ll have the guys look into it and see if we can make any improvements on this in the next update. Thanks for the feedback!

    Plugin Contributor angelleye

    (@angelleye)

    I had my guy take a look at this and he did remove one thing. You can see the changes here.

    This will be included the 1.1.0 update which we’re hoping to get released before long.

    Hi @angelleye

    One question related, what do you think about move frontend/public head scripts to footer? It could be possible? It will improve the performance.

    Thank you very much.

    Plugin Contributor angelleye

    (@angelleye)

    @spacebom, we’ll look into that. Thanks for the feedback.

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

The topic ‘Enqueue Script’ is closed to new replies.