https://github.com/hejny/loader
This is simple js and css loader.
https://github.com/hejny/loader
library old
Last synced: 5 months ago
JSON representation
This is simple js and css loader.
- Host: GitHub
- URL: https://github.com/hejny/loader
- Owner: hejny
- License: other
- Created: 2019-10-24T14:21:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-13T13:27:11.000Z (7 months ago)
- Last Synced: 2025-12-15T05:15:27.733Z (7 months ago)
- Topics: library, old
- Language: PHP
- Homepage:
- Size: 69.2 MB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
> :warning: This repository contains security issues - do not use it until consultation with @hejny .
# 🌐 Loader
[](https://packagequality.com/#?package=loader)
[](https://snyk.io/test/github/hejny/loader)
[](https://github.com/hejny/loader/issues)
This is simple js and css loader.
[](https://www.midjourney.com/app/jobs/ba8a8600-1977-4a33-89e0-3831e8e6fa75)
## Usage:
Thare should be provided one of these options:
?loader=async
?loader=sync-redirect
?loader=json
### In the sync and json loader should be also:
?version=[Semantic version]
?type=[js|css|*]
### In async loader should be:
?function=[loaderFunctionName]
### Async loader usage
Async loader requires jQuery to be included in window.
```javascript
window.loaderFunctionName(
{
version: '*',
type: 'js'
},
()=>{
//now you can use loaded scripts
}
);
```
## 🖋️ Contributing
I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [☕ buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
You can also ⭐ star the loader package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
## ✨ Partners
[Become a partner](https://www.pavolhejny.com/contact/)


