Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23285, comment 1


Ignore:
Timestamp:
01/24/2013 05:05:50 PM (12 years ago)
Author:
auniquename
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23285, comment 1

    initial v1  
    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. (?)
     1Though 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
     3Perhaps 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{{{
     6wp_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
     13Or something like that?