ted serbinski – entrepreneur & web architect
  • thoughts
  • about
  • contact



Popular content

  • OpenDNS for your Nintendo Wii!
  • The goodness of CCK + hook_form_alter()
  • JavaScript Compression
  • Location data with Drupal
  • MothersClick Wins Niche Social Networking Category in Web 2.0 Awards
  • DrupaLMAO Interview
  • Dabble
  • Leo talks about the new TWiT.tv site
  • Getting Drupal to Play Nice with Your CDN
  • Sony Musicbox
more

Recent comments

  • Unfortunately this method
    2 weeks 1 day ago
  • I’m using this method to sort
    7 weeks 13 min ago
  • I was interested in reading
    8 weeks 5 days ago
  • Ah yes this code is a bit out
    12 weeks 2 days ago
  • After using the original code
    12 weeks 2 days ago
more

Speeding up CSS and JS in Drupal

Whoohoo! My JS aggregation patch has finally made it into core to join my other CSS preprocessor patch :-)

With both of those in, is there anything else we can do to still improve the speed and loading time of CSS and JS in Drupal?

You betcha! The next and final phase is to now gzip these aggregated files and the issue is ready, just needs an actual patch for core now.

With 4 more weeks, I hope we can get this final phase in.

I also want to get in some general improvements to drupal_add_css() and drupal_add_js() to support weights instead of the clumsy “type” for sorting, along with support for absolute paths, useful when yo have a static file server.

posted 1 Jun 2007
  • css
  • drupal
  • gzipping
  • js
  • performance

No comments

Add your comment

The content of this field is kept private and will not be shown publicly.
  • You can use Textile markup to format text.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <img> <pre>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options


Code examples and downloadable zip files of code are licensed under a Creative Commons License.
All other content, unless where noted, ©2010 Theodore Serbinski. All Rights Reserved.