• Resolved Betty

    (@bettyst)


    Why isn’t ‘svg-inline.js’ loaded in the bottom of the page?

    I just changed the wp_register_script function from

    wp_register_script('bodhi_svg_inline', plugins_url('svg-support/js/svg-inline.js'), array('jquery'), '1.0.0', false );

    to

    wp_register_script('bodhi_svg_inline', plugins_url('svg-support/js/svg-inline.js'), array('jquery'), '1.0.0', true );

    and it works as expected!

    best regards

    https://www.ads-software.com/plugins/svg-support/

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

    (@benbodhi)

    Hello, thanks for your support ??

    I had a user report issues with it loaded in the footer which I was able to reproduce so placed it up in the header.
    I will look into those original issues again as it has been quite a while. I would prefer it in the footer for sure!

    Cheers
    Ben

    Thread Starter Betty

    (@bettyst)

    thank you ??

    Plugin Author Benbodhi

    (@benbodhi)

    Hello again,

    I have just released an update (2.2) which has some improvements and added functionality.
    One of the new features is a checkbox in the settings (Dashboard > Settings > SVG Support) that allows you to choose whether to output the JS in the head or foot.

    I trust this will sort out any issues for people who need it either way ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why not load JS in bottom?’ is closed to new replies.