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
版权声明:本文标题:wp dependencies - Set a parent script presence status true so that child scripts load in wordpress 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749056608a2309443.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论