--- title: "delay" slug: "debug-delay" updated: 2025-11-06T18:27:54Z published: 2025-11-06T18:27:54Z canonical: "docs.doc-know.com/debug-delay" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # delay ### delay Delays script execution for a specified # of milliseconds. Tip 1,000 milliseconds = 1 second ### Input Parameters | Name | Type | Required | Description | | --- | --- | --- | --- | | **duration** | Number | Yes | Time (in milliseconds) | ### Returns No return value. ### Examples ``` // delay for .25 seconds debug.delay(250); // this code runs after delay is complete ... ``` ### Remarks Notice Delays are intended for testing purposes only and may not work in production environments. Please remove them from all production scripts. In general, adding delays to your scripts is a bad idea - especially in production. They translate to poor user experiences and costly execution times. > Evidence suggests people are irritated by delays > 250 milliseconds. > Avoid delays completely in production.