Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56313, comment 51


Ignore:
Timestamp:
01/12/2024 10:26:58 PM (17 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56313, comment 51

    initial v1  
    77> 3. Is it desirable or possible for a module to depend on a non-module script, or vice versa? Should it be?
    88
    9 I'm "on the fence" on this but thinking perhaps not for now. A JS module depending on jQuery? Seems a bit like like mixing apples with oranges? :)
    10 Really want to see some "real life" examples of how that would work, and how useful it may be. Also should this even be needed in PHP or can it be done better in the browser/with JS? Modules are loaded as either `defer` or `async`, so any hard-coded "old-style" JS (that is outputted before any modules in the HTML head) will always be available to them.
     9I'm "on the fence" on this but thinking perhaps not for now. A JS module depending on jQuery? Seems a bit like like mixing apples with oranges? :) Really want to see some "real life" examples of how that would work, and how useful it may be.
    1110
     11Also should this even be needed in PHP or can it be done better in the browser/with JS? Modules are loaded as either `defer` or `async`, so any hard-coded "old-style" JS (that is outputted before any modules in the HTML head) will always be available to them.
     12