CSS Injector

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
16,318
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 12, 2007

A quick screencast that demonstrates the CSS Injector module for Drupal 6.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (jeffeaton)

  • Cool, but why use files?

    Why not put it in the database? You could have multiple rules/snippets and include them inline on pageload without all of those file system calls.

  • File system calls are faster than bootstrapping Drupal to generate the CSS on the fly each time it's needed; in addition, using the filesystem means that Drupal can automatically aggregate the snippets into a single master CSS file for the site, saving hits and download time.

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • give link for download and try  please

  • @somecomputergeek The reason why database calls seem faster than multiple file calls is because of the latency between you and the server — especially if you have a fast database server, like you seem to have. However, querying the CSS directly puts a lot of load on your DB, and it can fall over during a slashdotting.

    Instead, you should use files combined with Drupal’s CSS optimisation feature, which caches all CSS files into a single file, eliminating latency issues. Highly recommended.

  • nice module, nice vid

  • Fantastic - this is a great module and I appreciate the video showing how it works without having to install it first...

    Great to use a file instead of DB - not only can Drupal aggregate the CSS files (if you set the caching) BUT even if you don't, the browser will aggregate the file anyway.

  • Interesting. I guess I really need to dig more into the Drupal internals. I've found that, in php, a single database call is faster than multiple file calls, but you seam to know a hell of a lot more about the Drupal framework than I do. Thanks.

    Do you have a blog listing all of the modules you've working on? I really like simpleviews.

  • Cool little module

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more