Web Component: j-Stash

  • Info
  • HTML
  • JS
  • CSS
  • Meta


The component can postpone elements without destructing and detaching from the DOM. This component can help you with dynamic content from the server side. We use the component in the Total.js FlowStream projects for the component's settings.

  • elements can contain everything like components, scopes, binders, etc.


  • load {String} a path to the method function(id, next(html/element)) that is evaluated if the content wasn't loaded before
  • NEW: class {String} a class name for the stash container (default: hidden)


  • component.add(id, html/element) adds new HTML/element
  • component.clear([id]) clears specific ID (id is optional) or clears all cached content