Web component: j-Importer


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Importer

j-Import is a great component for importing HTML templates, scripts or styles according to the path and condition. The component can help with SPA applications because you can easily import templates, scripts or styles dynamically.

Configuration:

  • if {String} needs to contain a value
  • url {String} relative/absolute URL to a subpage or subpart
  • reload {String} a link to method in the global scope, it's executed if the condition is valid
  • cleaner {Number} (optional) idle time (in minutes) for running of cleaning (default: 0)
  • clean {String} (optional) a link to function, it's executed before the importer is cleaned

Author

Browser‘s Save action performs Preview