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

add handler for css files #160

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open

Conversation

ray007
Copy link

@ray007 ray007 commented Feb 2, 2016

Add support to cache css files.
Note: all relative urls in the css files need to be relative to the displayed html file.

@ray007 ray007 mentioned this pull request Apr 27, 2016
var handlers = {
'default': injectScript
'default': injectScript,
'css': injectStyle
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use 'text/css' as key name instead 'css' cause obj.type must equal xhr.getResponseHeader('content-type'), which responsed as 'text/css', of course.

KarlCastle added a commit to KarlCastle/basket.js that referenced this pull request Jul 16, 2016
@ray007
Copy link
Author

ray007 commented Jul 27, 2018

No idea why the automatic travis build failed.

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

Successfully merging this pull request may close these issues.

2 participants