jQuery reader() on downloaded content.

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2009-12-29T22:59:50Z Indexed on 2010/05/29 5:02 UTC
Read the original article Hit count: 121

Filed under:
|
|

Hi all!

jQuery.ready() allows us to wait for the construction of the webpage. Recently it has been added support to wait until CSS files are loaded.

I would like to know if that feature can be used for downloaded content, because I fetch content via $.ajax() that holds CSS references and I would like to retrieve the content of the CSS before working with the retrieved content.

  1. Fetch with $.ajax() the html.
  2. --> Wait until all CSS is downloaded.
  3. Show to fetched content (already css'ed).

Thank you very much for your help.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery