Commit ca23e6f
committed
Script Loader: Add sourceURL to inline scripts and styles.
Improve the source locations referenced by developer tooling in supporting browsers. Inline source locations are named like inline:handle-js-after and appear in the developer tools "sources" panel.
This is the second attempt to add sourceURL comments. The first attempt in [60685] was reverted due to an issue with script concatenation that has been addressed.
Developed in #9672.
Follow-up to [60685], [60690].
Props jonsurrell, westonruter, wildworks, peterwilsoncc, johnbillion, tobiasbg.
Fixes #63887.
git-svn-id: https://develop.svn.wordpress.org/trunk@60719 602fd350-edb4-49c9-b593-d223f7449a821 parent 9d802e0 commit ca23e6f
File tree
7 files changed
+286
-70
lines changed- src/wp-includes
- tests/phpunit/tests
- blocks
- dependencies
7 files changed
+286
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
225 | 239 | | |
226 | 240 | | |
227 | 241 | | |
| |||
524 | 538 | | |
525 | 539 | | |
526 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
527 | 552 | | |
528 | 553 | | |
529 | 554 | | |
| |||
696 | 721 | | |
697 | 722 | | |
698 | 723 | | |
| 724 | + | |
| 725 | + | |
699 | 726 | | |
700 | 727 | | |
701 | 728 | | |
702 | 729 | | |
703 | 730 | | |
704 | 731 | | |
| 732 | + | |
705 | 733 | | |
706 | 734 | | |
707 | 735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
340 | 347 | | |
341 | 348 | | |
342 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
| 2215 | + | |
2215 | 2216 | | |
2216 | 2217 | | |
2217 | 2218 | | |
| |||
2394 | 2395 | | |
2395 | 2396 | | |
2396 | 2397 | | |
2397 | | - | |
2398 | | - | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2399 | 2401 | | |
2400 | 2402 | | |
2401 | 2403 | | |
| |||
2407 | 2409 | | |
2408 | 2410 | | |
2409 | 2411 | | |
| 2412 | + | |
2410 | 2413 | | |
2411 | 2414 | | |
2412 | 2415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
| |||
0 commit comments