Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8513137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:28:20+00:00 2026-06-11T04:28:20+00:00

Opening an modal dialog box on a browser page, stops the page from redrawing.

  • 0

Opening an modal dialog box on a browser page, stops the page from redrawing.
Scripts started asynchronously run uninterrupted in the background.

I illustrate the behaviour in this JSfiddle http://jsfiddle.net/YNbux/. The box stops its animation when the alert() is shown and jumps in the animation when the alert is closed.

This behaviour is present in (on my computer at least):

  • Chrome 21.0.1180.82
  • Opera 12.01
  • Safari 6.0

So I guess it is intended behaviour – but causes animations to jump, and other things that would seem as glitches to an end user. So why does alert() and confirm() stop pages from redrawing?

Edit:
gif-images also stop redrawing: http://jsfiddle.net/YNbux/4/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:28:22+00:00Added an answer on June 11, 2026 at 4:28 am

    Those functions are blocking functions. Your JavaScript stops executing until they return.

    Your animations and what not in the background are not completely separated from your code calling alert(). Code that appears to be asynchronous still need to execute in the loop, and if some code blocks that loop, they will not run on their own. This is critical to proper operation of your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am opening a Child Modal Dialog window from my parent web page. The
I am opening a dialog box with a button click event. Dialog box contains
I'm opening a modal dialog for IE6 and above using the following javascript. window.showModalDialog(
I'm using twitter bootstrap modal dialog. And it works fine while only opening it
I am using jQuery's modal dialog for opening a dialog containing a form. What
I have a issue with Jquery Modal dialog being called from a button inside
I'm having trouble opening a dijit.Dialog from another dijit.Dialog. I've seen other posts here
I'm opening a modal dialog asking the user to fill certain fields. if(dlgUserDetail.ShowDialog() ==
I have a parent window from which i open a modal dialog on button
I have an aspx page that contains a dialog box defined with JQueryUI $('#dialog').dialog({

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.