Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async loading CDD #88

Open
kofifus opened this issue Jan 17, 2016 · 6 comments
Open

async loading CDD #88

kofifus opened this issue Jan 17, 2016 · 6 comments

Comments

@kofifus
Copy link

kofifus commented Jan 17, 2016

As far as I understand script.js does not support CSS files

Wouldn't it be cool to add it ? for example using the code from https://github.com/filamentgroup/loadCSS ?

Thanks!

@isocroft
Copy link

@kofifus I have an implementation this on my fork of script.js. you can check it out by cloning the repo

use the following code to async-ly load CSS
$script.get("../path/to/css", function(){ alert("all done!"); });

@isocroft
Copy link

though my implementation is unlike the loadCSS project by @scottjehl

@isocroft
Copy link

supported even in IE6

@kofifus
Copy link
Author

kofifus commented Jan 19, 2016

kul man, do you have in docs for your fork ? also is there a way in your implementation to know when the CSS finished loading ? thx!

@isocroft
Copy link

@kofifus i don't have docs available for this implementation. I may just have to edit the README.md file a little in the comming days to give brief examples. there is a second argument to the get llback to detect when you are done loading CSS

@forman
Copy link

forman commented Jun 2, 2017

Any news on this? I'd also be happy to see CSS loading in script.js!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants