• Resolved codi0

    (@codi0)


    This looks like a good plugin, so thanks for creating it. ??

    One thing I’ve noticed is that quite a lot of css and javascript is injected on every page load, regardless of whether the page is set as one of the checkout pages or not.

    It would be better if it was only injected on pages where invoicing forms are actually present (e.g. the pages specified in the settings or when a shortcode is used).

    v2.0 also seems to inject this into the very bottom of every page, which causes problems with styling when the font-size is set to something other than 16px:

    <style>html{font-size:16px;}</style>

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @codi0,

    Thanks for the feedback. We will work on a way to not add our scripts to the pages where it is not needed.

    The font size thing can be changed or removed in Settings > AyeCode UI >
    This is added to help with responsive font sizes but not all themes need it.

    Thanks,

    Stiofan

    Thread Starter codi0

    (@codi0)

    Thanks, appreciated!

    Just came here looking for the same issues with js for Stripe on all pages. Look forward to a “fix” for this too!

    Plugin Author Stiofan

    (@stiofansisland)

    Hi @comclusive,

    That is a slightly different subject to this topic. Stripe recommends you load their JS on all pages https://stripe.com/docs/js/including

    To best leverage Stripe’s advanced fraud functionality, include this script on every page, not just the checkout page.

    You can dequeue the stripe script on the pages you don’t want. If you need help with that or have further questions please start a new topic.

    @codi0 We had a team talk and devised a way to do this, it should make it into the core plugin in the next couple of weeks.

    Thanks,

    Stiofan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tidy up css/js injection’ is closed to new replies.