How to know that a time consuming CSS operation (rendering) has completed

Tags: javascript,iphone,css,javascript-events

Problem :

Is there a way to know when a time consuming CSS operation (setting webkit columns of a large page on a mobile device) has completed?

Solution :

You can do the following:

  1. Set callback with setTimeout with the minimal time, 1 millisecond for example.
  2. Do your CSS operations.
  3. Your callback will be invoked as fast as CSS operations will be completed and browser will be ready for new actions.

    CSS Howto..

    How to make a dynamic layout only by CSS

    How to create a 3 columns fluid fixed fluid layout?

    CSS: How to accomplish a div which is blurred at the edges?

    How to wrap UL list - LIs on new line with css

    How to add a class to a menu item that has children

    How to convert 6 digit color code to 3 digit quickly in css file?

    How to show middle of image in div using css?

    Switchery rendered wrong when triggering click after View is shown

    How to change an input button image using CSS?

    How to get CSS font-weight to display?

    CSS: How to change spacing between radio button and it's text?

    How do I change phpmyadmin font size for sql query box?

    How to display components horizontally with CSS

    CSS style not showing on print preview

    Button transition using javascript and css, how to temporarily disable the transition

    How to center text in my div

    CSS animate — how to fill div from center

    How to apply CSS styles to text only

    How to fit the title to the entire page

    how to change glyph height without changing the font-size?

    How to stretch background image of a table cell with CSS?

    CSS 100vw causing scrollbar to show, cant use 100% unfortunately

    Menu - Show up the Submenuitems under the whole Menuitems - HTML/CSS

    How to keep layout unchanged when keyboard is displayed?

    How to Center an image on top of another image using CSS?

    How to apply css hover on multiple elements

    How do I animate this box to have a pop out effect?

    How to create a line break instead of having text going on top of itself?

    What is default z-Index of
    element in HTML, and how to get it using JavaScript?

    How to use Font Awesome 4.x CSS file with JSF? Browser can't find font files