https://github.com/alaca/loadcss
Load CSS asynchronously
https://github.com/alaca/loadcss
async asynchronous css javascript style stylesheets
Last synced: about 1 month ago
JSON representation
Load CSS asynchronously
- Host: GitHub
- URL: https://github.com/alaca/loadcss
- Owner: alaca
- Created: 2017-11-07T09:50:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T16:41:30.000Z (over 8 years ago)
- Last Synced: 2025-02-14T22:04:50.900Z (over 1 year ago)
- Topics: async, asynchronous, css, javascript, style, stylesheets
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# loadCSS
Load CSS asynchronously
### Usage
```
```
### Manual CSS loading
```javascript
loadCSS('mystyle.css', 'all');
```
### Using onload event
```javascript
loadCSS('mystyle.css', 'all', function(link){
console.log(link.href);
});
```