XUL:Templates Plan: Difference between revisions

m
asynchronous data source loading
m (reload support for rdf datasources)
m (asynchronous data source loading)
Line 447: Line 447:


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 Conor Dowling ====
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