How do I know that the columns are made?

I use the css -column-width property (and of course -moz-column-width and -webkit-column-width ) to read the content on the web page. The problem is that when there is too much content, the sorting process is slow and can take several seconds. I was told to attach a counter to alert the user that the page is not ready yet, and that the counter should also block the user interface. But I can not find a suitable event to disable the counter. $(document).ready() too early. Any ideas?

+6
source share
1 answer

If $(document).ready() too early, you can use $(window).load(...) . This is indeed at the end of the process, but I cannot come up with anything in between.

If you can check the placement, you can start the survey with $(document).ready() and wait for the placement to match what you expect, or stop changing, or some. Polling every 10 ms or so will not have a noticeable effect and may allow you to get rid of the counter earlier than the load event.

+2
source

All Articles