XUL:Templates Plan: Difference between revisions

m
Line 446: Line 446:
An error event (onerror) may be used for error handling. Other attributes on the <datasource> tag may be used for datasource-specific purposes.
An error event (onerror) may be used for error handling. Other attributes on the <datasource> tag may be used for datasource-specific purposes.


==== Comment [[User:Conor325]] ====
 
A big shortcoming of rdf templates now is that they load data sources synchronously, blocking the browser. They seem to load the datasource as part of template parsing which doesn't allow a page to register as a builder listener and so catch when the first build of an element completes. As part of version 2, I think loading should be asynchronous and there should be an event like "datasourceLoaded".


==Examples==
==Examples==
40

edits