Skip navigation

Tag Archives: ajax

Riassunto delle tecniche utilizzate

  • IFRAME (“Forever frame”): Loading a page in an IFRAME that incrementally receives commands wrapped in <script> tags, which the browser evaluates as they are received.
  • XMLHTTPRequest Interactive: An AJAX request is made and the browser fires events every time data is received, even if the response is not yet complete. The entire response (so far) can then be read from the responseText property.
  • XMLHTTPRequest (polling only): An AJAX request is made and the browser fires events every time data is received, even if the response is not yet complete. The entire response (so far) can then be read from the responseText property.
  • Dynamic SCRIPT loading (“CometP”, polling only): By adding a SCRIPT tag to the HEAD of the document and setting its src attribute, new script can be loaded and evaluated by the browser.

The techniques described here are those employed by Meteor’s Javascript client to achieve the best result in each browser without any of the issues documented at the top of this page, and use a combination of several of the transports listed above. Details of the browser capability tests that led to these techniques being developed are documented in the cross site scripting matrix.

Annunci

Qualche tempo fa il tizio che ha scritto Firebug é stato assunto da Yahoo, ora yahoo presenta YSlow , un add-on per firefox che permette di analizzare le performance del caricamento, sopratutto Ajax, di una pagina web secondo alcuni regole preimpostate da yahoo.