7 years, 7 months ago
Hellow my question is in the title ^^, in fact i want to move the buddy scripts (js) to the footer
if anyone have an idea like a hook or else, Thanks a lot in advance
You’ll have to deregister them and then re-register them ensuring the fifth param of wp_register_script() is set to true
Note: Careful things don’t break as a result of moving scripts to the footer.
Okey like others scripts of wp core but do you know the handle of bp scripts ?
Not off the top of my head but try searching the BP codebase for wp_enqueue_script using either your code editor or the BP GitHub repo search form:
That should throw up all the handles you need.
okey thanks in fact i will use the wonderfull plugin : BWP Minify 😉
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service