Skip to content
Next Next commit
Clarify Gecko vs JavaScript engine wording in JIT statement
  • Loading branch information
Ayaan committed Aug 27, 2025
commit d720ddb09e6060be94787cb4b31b3f1a3dd1f2a1
2 changes: 1 addition & 1 deletion files/en-us/web/performance/guides/fundamentals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ The `canvas` element offers a pixel buffer directly for developers to draw on. T

### Gecko rendering

The Gecko JavaScript engine supports just-in-time (JIT) compilation. This enables application logic to perform comparably to other virtual machines — such as Java virtual machines — and in some cases even close to "native code".
Gecko's JavaScript engine supports just-in-time (JIT) compilation. This enables application logic to perform comparably to other virtual machines — such as Java virtual machines — and in some cases even close to "native code".

The graphics pipeline in Gecko that underpins HTML, CSS, and Canvas is optimized in several ways. The HTML/CSS layout and graphics code in Gecko reduces invalidation and repainting for common cases like scrolling; developers get this support "for free". Pixel buffers painted by both Gecko "automatically" and applications to `canvas` "manually" minimize copies when being drawn to the display framebuffer. This is done by avoiding intermediate surfaces where they would create overhead (such as per-application "back buffers" in many other operating systems), and by using special memory for graphics buffers that can be directly accessed by the compositor hardware. Complex scenes are rendered using the device's GPU for maximum performance. To improve power usage, simple scenes are rendered using special dedicated composition hardware, while the GPU idles or turns off.

Expand Down