Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcial1234 authored Dec 30, 2024
2 parents 303f667 + 53c832f commit d5a6e79
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 35 deletions.
4 changes: 3 additions & 1 deletion files/en-us/glossary/compile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ page-type: glossary-definition

Typically, a compiler transforms code written in a higher-level language such as [C++](https://en.wikipedia.org/wiki/C++), [Rust](<https://en.wikipedia.org/wiki/Rust_(programming_language)>), or [Java](<https://en.wikipedia.org/wiki/Java_(programming_language)>) into executable (runnable) code — so-called **binary code** or **machine code**. [WebAssembly](/en-US/docs/WebAssembly), for example, is a form of executable binary code that [can be compiled from code written in C++, Rust, C#, Go, Swift, and several other languages](https://webassembly.org/getting-started/developers-guide/) and run on any web page, with most features supported in modern browsers (see [browser compatibility table](/en-US/docs/WebAssembly#browser_compatibility)).

Most compilers perform either ahead-of-time (AOT) compilation or just-in-time (JIT) compilation.
Most compilers perform either ahead-of-time (AOT) compilation or {{glossary("Just In Time Compilation", "just-in-time (JIT)")}} compilation.

The GNU `gcc` compiler is one well-known example of an AOT compiler. AOT compilers are typically invoked from the command line in a shell environment (from within a terminal or console) or within an {{Glossary("IDE")}}.

Expand All @@ -22,3 +22,5 @@ Compilers may also translate among higher-level languages — for example, from

- [Compiler](https://en.wikipedia.org/wiki/Compiler) on Wikipedia
- [WebAssembly](/en-US/docs/WebAssembly)
- Related glossary terms:
- {{glossary("Just In Time Compilation", "Just-In-Time (JIT)")}}
19 changes: 19 additions & 0 deletions files/en-us/glossary/just_in_time_compilation/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Just-In-Time Compilation (JIT)
slug: Glossary/Just_In_Time_Compilation
page-type: glossary-definition
---

{{GlossarySidebar}}

**JIT** (_Just-In-Time Compilation_) is a {{glossary("compile", "compilation")}} process in which code is translated from an intermediate representation or a higher-level language (e.g., {{glossary("JavaScript")}} or Java bytecode) into machine code _at runtime_, rather than prior to execution. This approach combines the benefits of both interpretation and ahead-of-time (AOT) compilation.

JIT compilers typically continuously analyze the code as it is executed, identifying parts of the code that are executed frequently (hot spots). If the speedup gains outweigh the compilation overhead, then the JIT compilers will compile those parts into machine code. The compiled code is then executed directly by the processor, which can result in significant performance improvements.

JIT is commonly used in modern {{glossary("browser", "web browsers")}} to optimize the performance of JavaScript code.

## See also

- [Just-In-Time Compilation](https://en.wikipedia.org/wiki/Just-in-time_compilation) on Wikipedia
- Related glossary terms:
- {{glossary("compile")}}
2 changes: 1 addition & 1 deletion files/en-us/learn_web_development/core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In particular, if you've never done any coding before, we'd recommend the [Your
- : Access to web content such as public services, education, e-commerce sites, and entertainment is a human right. No one should be excluded based on disability, race, geography, or other human characteristics. This module discusses the best practices and techniques you should learn to make your websites as accessible as possible.
- [Design for developers](/en-US/docs/Learn_web_development/Core/Design_for_developers)
- : The idea of this module is to (re-)introduce developers to design thinking. They may not want to work as designers, but having some basic user experience and design theory is good for everyone involved in building websites, no matter what their role. At the very least, even the most technical, "non-designer" developer should understand design briefs, why things are designed as they are, and be able to get into the mindset of the user. And it'll help them make their portfolios look better.
- [Version_control](/en-US/docs/Learn_web_development/Core/Version_control)
- [Version control](/en-US/docs/Learn_web_development/Core/Version_control)
- : Version control tools are an essential part of modern workflows, for backing up and collaborating on codebases. This module takes you through the essentials of version control using Git and GitHub.

## See also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let settingIcon = browser.browserAction.setIcon(
Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this:

```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.browserAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -55,7 +55,7 @@ let settingIcon = browser.browserAction.setIcon(
Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this:
```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.browserAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser-compat: webextensions.api.omnibox.onDeleteSuggestion
{{AddonSidebar}}

Fired whenever the user deletes a suggestion.
A suggestion can be deleted when {{WebExtAPIRef("omnibox.SuggestResult","SuggestResult")}}`.deletable` is set to true.
A suggestion can be deleted when the property `deletable` of a {{WebExtAPIRef("omnibox.SuggestResult","SuggestResult")}} is set to true.

## Syntax

Expand Down Expand Up @@ -54,5 +54,3 @@ browser.omnibox.onDeleteSuggestion.addListener(logDeletedSuggestion);

> [!NOTE]
> This API is based on Chromium's [`chrome.omnibox`](https://developer.chrome.com/docs/extensions/reference/api/omnibox) API.
>
> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let settingIcon = browser.pageAction.setIcon(
Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this:

```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.pageAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -53,7 +53,7 @@ let settingIcon = browser.pageAction.setIcon(
Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this:
```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.pageAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ gettingInfo.then(gotBrowserInfo);
## Browser compatibility

{{Compat}}

> [!NOTE]
> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,3 @@ visit(window);
## Browser compatibility

{{Compat}}

> [!NOTE]
> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let settingIcon = browser.sidebarAction.setIcon(
Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this:

```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.sidebarAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -65,7 +65,7 @@ let settingIcon = browser.sidebarAction.setIcon(
Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this:
```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.sidebarAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ page-type: guide

{{WebExtAllCompatTables}}

> [!NOTE]
> Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.
## See also

- [Browser compatibility for manifest.json](/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_compatibility_for_manifest.json)
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Use the `aria-owns` property on the elements that own expandable grouping contai

### Buttons

A button that opens a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the expandable widget and `aria-expanded` set to the current state of the widget.
A button that toggles a widget should have `aria-controls` set to the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the toggled widget and `aria-expanded` set to the current state of the widget.

```html
<button aria-expanded="false" aria-controls="widget1">Show widget</button>
<button aria-expanded="false" aria-controls="widget1">Toggle widget</button>
```

When the widget is visible, the controlling object relays that information via having `aria-expanded="true"` set on it. The accessible name of the controlling object should reflect this change.

```html
<button aria-expanded="true" aria-controls="widget1">Hide widget</button>
<button aria-expanded="true" aria-controls="widget1">Toggle widget</button>
```

### Menu
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/stop-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: stop-color
slug: Web/SVG/Attribute/stop-color
page-type: svg-attribute
browser-compat: svg.elements.stop.stop-color
browser-compat: svg.global_attributes.stop-color
---

{{SVGRef}}
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/stop-opacity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: stop-opacity
slug: Web/SVG/Attribute/stop-opacity
page-type: svg-attribute
browser-compat: svg.elements.stop.stop-opacity
browser-compat: svg.global_attributes.stop-opacity
---

{{SVGRef}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"gray-matter": "^4.0.3",
"husky": "9.1.7",
"js-yaml": "^4.1.0",
"lint-staged": "15.2.11",
"lint-staged": "15.3.0",
"markdownlint-cli2": "0.17.0",
"markdownlint-rule-search-replace": "1.2.0",
"prettier": "3.4.2"
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2459,10 +2459,10 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.2:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^5.3.0, chalk@~5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==
chalk@^5.3.0, chalk@~5.4.1:
version "5.4.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.4.1.tgz#1b48bf0963ec158dce2aacf69c093ae2dd2092d8"
integrity sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==

change-file-extension@^0.1.1:
version "0.1.1"
Expand Down Expand Up @@ -5603,12 +5603,12 @@ linkify-it@^5.0.0:
dependencies:
uc.micro "^2.0.0"

lint-staged@15.2.11:
version "15.2.11"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.2.11.tgz#e88440982f4a4c1d55a9a7a839259ec3806bd81b"
integrity sha512-Ev6ivCTYRTGs9ychvpVw35m/bcNDuBN+mnTeObCL5h+boS5WzBEC6LHI4I9F/++sZm1m+J2LEiy0gxL/R9TBqQ==
lint-staged@15.3.0:
version "15.3.0"
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.3.0.tgz#32a0b3f2f2b8825950bd3b9fb093e045353bdfa3"
integrity sha512-vHFahytLoF2enJklgtOtCtIjZrKD/LoxlaUusd5nh7dWv/dkKQJY74ndFSzxCdv7g0ueGg1ORgTSt4Y9LPZn9A==
dependencies:
chalk "~5.3.0"
chalk "~5.4.1"
commander "~12.1.0"
debug "~4.4.0"
execa "~8.0.1"
Expand Down

0 comments on commit d5a6e79

Please sign in to comment.