Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:48:38+00:00 2026-05-24T11:48:38+00:00

I am using the Yahoo Yui Compressor to compress my css styles. I reference

  • 0

I am using the Yahoo Yui Compressor to compress my css styles. I reference the dll in my c# application and make the call to the compressor as follows:

CssCompressor.Compress(fileContent, 0, CssCompressionType.StockYuiCompressor)

This worked perfectly up to recently.

Over recent days, the size of my stylesheets have increased from 7KB to 130KB. The reason for this is the inclusion of base64 data uri’s within the stylesheets instead of image requests. As a result of this, the compressing of the css has gone from ~1 seconds to +10 seconds.

This has become an issue for me, as this is a long period of time to wait for each of my stylesheets to compress.

Using Yahoo Yui, is there anyway to speed up the compressing?

Or do I need to move another css minifier/compressor?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:48:39+00:00Added an answer on May 24, 2026 at 11:48 am

    You can try Microsoft’s Ajax Minifier, which has a simple .NET API. In my tests it compressed better than the YUI Minifier.

    Regardless of the minifier you should try caching the minified stylesheets instead of recomputing on every request, and prime the cache on application startup. Your startup time may be long but it won’t affect each request.

    Recompute if necessary. For example, if a file changes on disk and you want to update you can use a CacheDependency when inserting the minified CSS into the cache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using YUI's datatable ( http://developer.yahoo.com/yui/datatable/ ) to make a table. But notice
I am using YUI Panel http://developer.yahoo.com/yui/container/panel/ to design an application. I want to execute
I'm currently using the Yahoo YUI javascript library in a couple of my projects.
OS: Windows XP I am using yuicompressor-2.4.2 to compress some CSS before uploading to
I'm combining multiple js files using YUI Compressor. The command works successfully and outputs
I am currently using YUI datatable, but it is buggy: http://developer.yahoo.com/yui/datatable/ Is there another
I have a javascript file that I minify using the Yahoo YUI. When I
Can I plot charts like this http://developer.yahoo.com/yui/examples/charts/charts-rotation.html using flot ? I mean, I have
i am using YUI 3.1 Library from Yahoo and also the TextExpander to let
I'm using post, and the YUI documentation example code isn't working. YAHOO.util.Event.addListener(window,load,function() { var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.