CE is a great plugin, you can speed up your CE powered site, by simply
installing the bundle_fu plugin.
It compress and send in a single package all javascript and css files.
=== Step 1 ===
Install the plugin
git clone git://github.com/timcharper/bundle-fu.git vendor/plugins/
bundle-fu && rm -rf vendor/plugins/bundle-fu/.git
===Step 2 ===
Modify your $RAILS_APP/vendors/plugins/app/views/shared/
_scripts_and_styles.html.html to this.
- bundle do
= javascript_include_tag "prototype", :plugin => "community_engine"
= javascript_include_tag "effects", :plugin => "community_engine"
= javascript_include_tag "event-selectors", :plugin =>
"community_engine"
= javascript_include_tag "glider", :plugin => "community_engine"
= javascript_include_tag "controls", :plugin => "community_engine"
unless current_page?({:controller => 'application', :action =>
'index'})
= javascript_include_tag "dragdrop", :plugin => "community_engine"
if @controller.controller_name.eql?('users') && %w(welcome_about edit
update).include?(@controller.action_name)
= javascript_include_tag "application", :plugin =>
"community_engine"
= javascript_include_tag "rounder", :plugin => "community_engine"
= javascript_include_tag "AC_RunActiveContent", :plugin =>
"community_engine" if current_page?(:controller => 'photos', :action
=> 'new') or current_page?(:controller => 'statistics', :action =>
'index')
- if current_page?(:controller => 'photos', :action => 'new')
= javascript_include_tag 'swfupload', :plugin =>
"community_engine"
= javascript_include_tag 'uploader', :plugin => "community_engine"
= stylesheet_link_tag 'reset-fonts-grids.css', :plugin
=> :community_engine
= stylesheet_link_tag 'screen', :plugin => :community_engine
- if current_page?({:controller => 'posts', :action => 'show' })
= javascript_include_tag 'lightbox', :plugin => "community_engine"
= stylesheet_link_tag 'lightbox', :plugin => "community_engine"
= javascript_include_tag "prototip-min", :plugin =>
"community_engine"
= stylesheet_link_tag 'prototip', :media => 'screen', :plugin =>
"community_engine"
= javascript_include_tiny_mce_if_used
= tiny_mce if using_tiny_mce?
- if forum_page?
= javascript_include_tag 'lowpro', 'forum', :plugin =>
'community_engine'
= stylesheet_link_tag 'forum', :plugin => 'community_engine'
- unless @feed_icons.blank?
- @feed_icons.each do |feed|
= auto_discovery_link_tag :rss, feed[:url], :title =>
"Subscribe to '#{feed[:title]}'"
I hope you find useful,this info.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---