Skip to content

Commit a4dde80

Browse files
authored
Merge pull request #14 from WICG/minor
add faq
2 parents a3efe2f + afa645c commit a4dde80

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ feedback on the proposed solution. It has not been approved to ship in Chrome.
3232
- [How this solution would solve the use cases](#how-this-solution-would-solve-the-use-cases)
3333
- [Detailed design discussion](#detailed-design-discussion)
3434
- [Per-file or per-function?](#per-file-or-per-function)
35-
- [Considered alternatives](#considered-alternatives)
35+
- [Alternatives considered](#alternatives-considered)
3636
- [Alternative: Top-level magic comment with per-function data as payload](#alternative-top-level-magic-comment-with-per-function-data-as-payload)
3737
- [Alternative: Top-level "use eager" directive and per-function "use eager" directive](#alternative-top-level-use-eager-directive-and-per-function-use-eager-directive)
3838
- [Alternative: per-function magic comment](#alternative-per-function-magic-comment)
@@ -42,6 +42,8 @@ feedback on the proposed solution. It has not been approved to ship in Chrome.
4242
- [Alternative: do nothing / no solution for web developers to control eager compilation](#alternative-do-nothing--no-solution-for-web-developers-to-control-eager-compilation)
4343
- [Risks and mitigations](#risks-and-mitigations)
4444
- [Stakeholder feedback / opposition](#stakeholder-feedback--opposition)
45+
- [FAQ](#faq)
46+
- [Q: Why are you not pursuing standardizing the feature via TC39?](#q-why-are-you-not-pursuing-standardizing-the-feature-via-tc39)
4547
- [References & acknowledgements](#references--acknowledgements)
4648

4749
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
@@ -257,9 +259,18 @@ Concerns brought up by other browser implementors:
257259
- The optimal set of files / functions to eager compile might be different for different browsers.
258260
- Compile hints are only relevant for the "cold load" (the initial, non-cached load of a website). After the initial web page load, the browser might be in a better position to decide which functions should be eagerly compiled than the web developers.
259261

262+
## FAQ
263+
264+
### Q: Why are you not pursuing standardizing the feature via TC39?
265+
266+
This feature only impacts performance. It doesn't change observable behavior, and thus it avoids the kind of interoperability challenges that TC39 is designed to address. Currently, other browser implementors have not show interest in implementing performance optimizations based on this feature.
267+
268+
Incubating in WICG allows us to gather feedback from stakeholders and iterate on the spec in a faster and leaner way. We'll also keep the format as generic as possible - to make it as easy as possible for other browsers to implement performance optimisations based on this feature later - and incorporate feedback from other browsers into the spec.
269+
260270
## References & acknowledgements
261271

262272
Many thanks for valuable feedback and advice from:
263273

264-
- Shu-Yu Guo, Toon Verwaest, Leszek Swirski, Noam Rosenthal and others from V8 (Google)
274+
- Shu-Yu Guo, Toon Verwaest and Leszek Swirski from V8 (Google)
265275
- Philip Weiss, Adam Giacobbe and Quade Jones from Workspace (Google)
276+
- Noam Rosenthal and other spec experts (Google)

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Shortname: explicit-js-compile-hints
44
Level: None
55
Status: LD
66
Repository: explainers-by-googlers/explicit-javascript-compile-hints-file-based
7-
URL: https://explainers-by-googlers.github.io/explicit-javascript-compile-hints-file-based/
7+
URL: https://wicg.github.io/explicit-javascript-compile-hints-file-based/
88
Editor: Marja Hölttä, Google, https://google.com, [email protected]
99
Abstract: A magic comment in JavaScript for signaling certain scripts / functions should be prioritized.
1010
Markup Shorthands: markdown yes, css no

0 commit comments

Comments
 (0)