Closed (works as designed)
Project:
Ubercart
Version:
5.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Feb 2009 at 10:14 UTC
Updated:
4 Feb 2011 at 13:15 UTC
Lots of ubercart core modules are adding their css files on every page load.
It would be more efficient to only add them when they are needed.
Comments
Comment #1
rszrama commentedI'd consider a patch for that, otherwise this has already been improved on in the D6 branch.
Comment #2
NewZeal commentedI had a lot of problems with ubercart css interfering with wysiwyg and completely crashing the theme in some forms (css not working at all) in Internet Explorer. I went through and removed drupal_add_css from hook_menu in five modules:
uc_attributes
uc_product
uc_roles
uc_order
uc_store
uc_reports
(placing it in various functions in order to hopefully have it in place when needed)
The result is that wysiwyg displays correctly and I have my theme back.
Comment #3
tr commentedTagging
Comment #4
rickmanelius commentedsubscribing.
I'm optimizing the site now and I noticed uc_product, uc_store, etc are on every page load. Not a huge deal, but it would be nice if it only added when necessary...
Comment #5
rickmanelius commentedActually, it appears other modules like the date module do this be design for CSS aggregation.
http://drupal.org/node/369159
Comment #6
longwave