[wp-trac] [WordPress Trac] #48880: Using JSON.parse instead of an actual object literal when localizing scripts
WordPress Trac
noreply at wordpress.org
Wed Apr 9 15:33:25 UTC 2025
#48880: Using JSON.parse instead of an actual object literal when localizing
scripts
------------------------------------+--------------------------------------
Reporter: naxvog | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Script Loader | Version:
Severity: normal | Resolution: wontfix
Keywords: has-patch needs- | Focuses: javascript, performance
testing |
------------------------------------+--------------------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
For `block_editor_rest_api_preload` it may be interesting because there it
deals with larger objects, but otherwise you won't see a difference. And
with the JS engines evolving a lot in the last 6 years, I bet it doesn't
matter anyway anymore.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48880#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list