| 1 | | Though thinking about it, perhaps the existing *_enqueue_scripts model could be modified to be AMD literate while preserving backward compatibility by doing the AMD implementation transparently behind the WordPress API. (?) |
| | 1 | Though thinking about it, perhaps the existing wp_register_script model could be modified to be AMD literate while preserving backward compatibility by doing the AMD implementation transparently behind the WordPress API. (?) |
| | 2 | |
| | 3 | Perhaps include all versions of jQuery as they are released and take the dependency array passed to wp_register_script and use it to create Asynchronous Module Definitions behind the scenes... |
| | 4 | |
| | 5 | {{{ |
| | 6 | wp_register_script( 'myplugin-script', MYPLUGIN_URL . 'js/myplugin.js', |
| | 7 | array( 'jquery 1.9.0', |
| | 8 | 'jquery-ui-dialog 1.10.0' |
| | 9 | ) |
| | 10 | ); |
| | 11 | }}} |
| | 12 | |
| | 13 | Or something like that? |