-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
optimize css render #11
Comments
I thought about this during development but had some reason to go against it. I thought it was to allow for multiple spritesheets but in retrospect, that is not a valid reason. I am guessing I was half-awake at the time. |
I think this is a matter of perspective. But from a number of sprite the gain will be significant. |
Upon revisiting this, I realized why I did that. json2css([{
image: 'img1.png',
x: 0, y: 0, ...
}, {
image: 'img2.png',
x: 50, y: 50, ...
}]); If I were to introduce any optimization (e.g. clump together all sprites with a common As a result, I will be closing this issue and recommending you to a CSS optimizer which should take care of the redundant sprite troubles: |
+1 |
Optimize css file rendering like this :
rather than
do
The text was updated successfully, but these errors were encountered: