[wp-hackers] Hook into load-styles.php / load-scripts.php "queue"?

Oliver Schlöbe office at wpseek.com
Tue Dec 1 21:42:26 UTC 2009


Well, I do not exactly complain about the current way of adding scripts 
to a page via plugin. :-)
However, it would be a nice thing to load scripts like this

<script type='text/javascript' 
src='wp-admin/load-scripts.php?c=1&amp;load=jquery,utils,sack,/plugin-script-handler1,//plugin-script-handler2/&amp;ver=97388699f39a28aaba58ae0d13b799c3'></script>

instead of

<script type='text/javascript' 
src='wp-content/plugins/plugin1/admin_scripts.js?ver=1.2'></script>
<script type='text/javascript' 
src='wp-content/plugins/plugin2/admin_scripts.js?ver=2.9-beta-1'></script>
<script type='text/javascript' 
src='wp-content/plugins/plugin3/admin_scripts.js?ver=2.9-beta-1'></script>

Regards


On 01.12.2009 22:25, Otto wrote:
> wp_enqueue_script is the correct way. The minify and compress stuff is
> automatically handled, if it is enabled.
>
> Just enqueue as normal, let WordPress deal with the rest.
>
> -Otto
> Sent from Memphis, TN, United States
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>    

-- 
Regards,
Oliver Schlöbe

http://wpseek.com/
http://wpworldmap.net/



More information about the wp-hackers mailing list