Make WordPress Core


Ignore:
Timestamp:
03/15/2023 11:36:52 AM (21 months ago)
Author:
spacedmonkey
Message:

Widgets: Defer register inline script in WP_Widget_Custom_HTML and WP_Widget_Text.

In [41376] an inline script was added to push idBases for the custom html and text widgets. However, this script is not used unless the widget script is output in the widget screen / customizer. Deferring registering this script until it is needed, results in a faster server response times.

Props spacedmonkey, sakibmd, flixos90, westonruter.
Fixes #57864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r55542 r55553  
    1194211942            "version": "1.1.0",
    1194311943            "resolved": "https://registry.npmjs.org/from2-string/-/from2-string-1.1.0.tgz",
    11944             "integrity": "sha512-m8vCh+KnXXXBtfF2VUbiYlQ+nczLcntB0BrtNgpmLkHylhObe9WF1b2LZjBBzrZzA6P4mkEla6ZYQoOUTG8cYA==",
     11944            "integrity": "sha1-GCgrJ9CKJnyzAwzSuLSw8hKvdSo=",
    1194511945            "requires": {
    1194611946                "from2": "^2.0.3"
     
    2110021100            "version": "1.1.6",
    2110121101            "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-1.1.6.tgz",
    21102             "integrity": "sha512-7rrONfyLkDEc7OJ5QBkqa4KI4EBhCd340xRuIUPGCfu13znS+vx+VDdrT9ODAJHlXm7w4lbxN3DRjyv58EuzDg=="
     21102            "integrity": "sha1-zQTv9G9clcOn0EVZHXm14+AfEtc="
    2110321103        },
    2110421104        "prompts": {
     
    2323923239            "version": "1.0.0",
    2324023240            "resolved": "https://registry.npmjs.org/stream-from-promise/-/stream-from-promise-1.0.0.tgz",
    23241             "integrity": "sha512-j84KLkudt+gr8KJ21RB02btPLx61uGbrLnewsWz6QKmsz8/c4ZFqXw6mJh5+G4oRN7DgDxdbjPxnpySpg1mUig=="
     23241            "integrity": "sha1-djaH9913fkyJT2QIMz/Gs/yKYbs="
    2324223242        },
    2324323243        "stream-to-string": {
     
    2450724507            "version": "2.0.2",
    2450824508            "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
    24509             "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
     24509            "integrity": "sha1-riF2gXXRVZ1IvvNUILL0li8JwzA="
    2451024510        },
    2451124511        "totalist": {
Note: See TracChangeset for help on using the changeset viewer.