Why not load JS in bottom?
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Why not load JS in bottom?’ is closed to new replies.