admin管理员组

文章数量:1130349

I didn't know how to write a good title for my problem.

I'm trying to integrate some scripts in js file and dequeue them to decrease browser requests. So let's say we have some child scripts which for some reasons I don't want to integrate them and they have dependencies on a parent script that I've dequeued it and integrated into another script file. Now I know I've loaded the parent script (inside the integrated script) and I want to broadcast its presence so that all depended child scripts load. How can I do that?

wp_script_is determines if a script has been enqueued. I want to make its output true as well for some handlers (parent scripts I mentioned).

I didn't know how to write a good title for my problem.

I'm trying to integrate some scripts in js file and dequeue them to decrease browser requests. So let's say we have some child scripts which for some reasons I don't want to integrate them and they have dependencies on a parent script that I've dequeued it and integrated into another script file. Now I know I've loaded the parent script (inside the integrated script) and I want to broadcast its presence so that all depended child scripts load. How can I do that?

wp_script_is determines if a script has been enqueued. I want to make its output true as well for some handlers (parent scripts I mentioned).

本文标签: wp dependenciesSet a parent script presence status true so that child scripts load in wordpress