Skip to content

frost-nzcr4/autoload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Why?

When you have many plugins each in separate directory that contains:

  • css
  • js
  • images

and many of them are located in different places

How it works?

$.autoload.css("style.css", {baseFile: "pluginName.js", cssPath: "css/"});
  1. Autoload try to find baseFile among existing scripts of document head
  2. It extract basePath from baseFile
  3. Load CSS from "basePath + cssPath + style.css"

About

Create path to CSS/images based on JavaScript URL. jQuery plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published