An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

> :warning: This repository contains security issues - do not use it until consultation with @hejny .

# 🌐 Loader

[![Quality of package Loader](https://packagequality.com/shield/loader.svg)](https://packagequality.com/#?package=loader)
[![Known Vulnerabilities](https://snyk.io/test/github/hejny/loader/badge.svg)](https://snyk.io/test/github/hejny/loader)
[![Issues](https://img.shields.io/github/issues/hejny/loader.svg?style=flat)](https://github.com/hejny/loader/issues)

This is simple js and css loader.

[![Wallpaper of 🌐 Loader](assets/ai/wallpaper/gallery/ba8a8600-1977-4a33-89e0-3831e8e6fa75-0_0.png)](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

Collboard
     
WebGPT
     
Promptbook

[Become a partner](https://www.pavolhejny.com/contact/)