aneuryzm
aneuryzm

Reputation: 64874

Unresponsive JavaScript popups. Can I disable them from my website?

Is there any way to disable browsers popups about long running scripts (i.e. in Firefox and Safari) directly from the website?

(And not from the browser settings)

Upvotes: 2

Views: 606

Answers (2)

Daniel Vassallo
Daniel Vassallo

Reputation: 344571

Since you mentioned Firefox and Safari, you may want to use Web Workers (Firefox 3.5 and Safari 4). Execution of Web Workers happens in a separate process, and does not block the UI thread:

Upvotes: 1

Sean Kinsey
Sean Kinsey

Reputation: 38046

Only by breaking the long running script into pieces.

See my answer to Show javascript execution progress for a solution for this.

Upvotes: 2

Related Questions