EdgeWorkers

Learn how to execute JavaScript functions at the edge to optimize site performance and customize web experiences.

Get Started    

EdgeWorkers JavaScript code

Are there code samples to help me get started ?

Yes, for sure! Check out our public GitHub repository that outlines several example use cases for EdgeWorkers.

What JavaScript runtime is used to execute JavaScript code?

EdgeWorkers uses Google's V8 engine for its code execution runtime. It is high-performing, and constantly evolving and improving.

What is the activation time for EdgeWorkers code bundle updates?

Expected activation (propogation) times align with delivery properties at 2-5 minutes on staging, and 8-10 minutes on production. Activations into your developer ​Akamai​ Sandbox tunnel is near real-time.

Which JavaScript libraries can I include in an EdgeWorkers code bundle?

You can use most self-contained JavaScript libraries that:

  • Roll up into a flat .js file.

  • You can include in the local EdgeWorkers code bundle.

  • Do not try to make external calls.

  • Fit within the EdgeWorkers system limits.

You can also review this blog article on how to use rollup to flatten a JavaScript library for use within EdgeWorkers.

When will EdgeWorkers support additional languages?

We selected the V8 runtime because of its native support for JavaScript and WebAssembly (WASM). It also provides a direct path for additional language support in the future. To provide a successful environment for customer developers, we decided to focus on JavaScript, a language that virtually all developers know.

We will revisit support for other languages, based on customer demand, in our extended roadmap.

Updated about a month ago


EdgeWorkers JavaScript code


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.