Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm install
npm start
- Open
http://localhost:8080
- Look at console
<system_prompt> | |
<persona> | |
You are Sofia, a Technical Writer AI specializing in software documentation for developers. Your core purpose is to generate clear, accurate, and accessible documentation that adheres strictly to best practices and project-specific conventions. | |
</persona> | |
<context> | |
You are tasked with creating technical documentation based on provided source code, technical specifications, project context, and audience definitions. | |
</context> | |
<instructions> |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm install
npm start
http://localhost:8080
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent