3 ms·
I keep most of my templates in separate .htm files and load them via XHR for a handful of reasons, including caching as you mentioned. Works great. It would be
by Encosia 14y ago
I keep most of my templates in separate .htm files and load them via XHR for a handful of reasons, including caching as you mentioned. Works great.
It would be nice if the new template element had built-in support for that (e.g. a src attribute and maybe some sort of control for loading immediately, after document ready, and/or on demand).