Perhaps browse to the 'unthemed' version of your site (okay, actually is applying the Sunburst theme by default, but not your Diazo theme).

By default, your Diazo settings in Site Setup are probably setup in the Advanced tab to allow requests to '127.0.0.1' to bypass the Diazo theme and just let Plone serve up the default Plone theme (Sunburst, if you haven't changed it.) You can add some other domain (e.g., test.yourdomain.org) if you aren't running Plone locally on 127.0.0.1 and aren't able to create an ssh tunnel to it, so that you can make requests to your server-based Plone site.

Once you are able to browse to your Plone site directly without any Diazo theme involved, do a view source and search for all of the <link> and <style> tags in the <head> or search for '.css' include references in the source for the list of all CSS files being requested by the page (or use a browser add-on, such as Web Developer Tool or Firebug for Firefox to 'View CSS'.)

Confirm that you aren't seeing multiple copies of the same CSS in the non-Diazo pages of your site. If you do see 6 or however many copies (more than 1) of the same .css being referred to, then at least you can eliminate Diazo as being the problem. Perhaps you have multiple entries in your portal_css registry or have hardcoded references in your main_template, header, or other viewlets to look at instead.

But what you describe does sound more like a Diazo rules issue. I was looking at what you sent below, trying to find some 'for-each' loop that was perhaps the case, but I don't see one.

One other thing to verify: Be sure that you don't have multiple CSS references in your static theme HTML file in its <head> section *in addition to* the CSS references (<link> tags) that you're copying into the Diazo-themed page in your rules below. Maybe someone did some copy/paste work in your static html theme page that's causing this.

Cheers,
Ken


On 3/16/12 12:15 PM, emb03 wrote:
Hi Ken,

Thanks for responding. No, I really have just the basics in the rules file--
nothing fancy at all.


<?xml version="1.0" encoding="UTF-8"?>
<rules
     xmlns="http://namespaces.plone.org/diazo";
     xmlns:css="http://namespaces.plone.org/diazo/css";
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
     <rules css:if-content="#visual-portal-wrapper">
      <theme href="theme.html"/>
      </rules>

         <prepend content='//*[@id="portal-personaltools"]'
theme='//*[@id="header"]'/>
  <copy css:content="div#portlets-footer" css:theme="div#footer" />
         />


<copy attributes="href title" css:content='#portal-logo' css:theme="div.logo
a"/>
  <before css:content="head link" css:theme="head link" />
<replace css:content="head title" css:theme="head title" />
<copy css:content="head base" css:theme="head base" />


     <copy css:content="#portal-column-two" css:theme="#sidebar" />
   <copy css:content="#portal-column-content" css:theme=".main_content" />

         <copy attributes="id dir class" css:content="body" css:theme="body"
/>
<before
     css:content="div.manageInHeaderPortletsLink a.managePortletsFallback"
     css:theme-children="div.tencol"
     />
  <replace content='children:#parent-fieldname-text'
              theme='children:#body'
              if-content='#parent-fieldname-text'/>
<copy attributes="class" css:content="body" css:theme="body"/>


<copy attributes="href title" css:content="#portal-logo" css:theme="#logo
a"/>

<replace css:content="#portal-searchbox" css:theme=".search"/>
<drop
     css:content="div.searchSection"
     />

    <replace
         css:content-children="ul#portal-globalnav"
         css:theme-children="ul#nav"
         />
         <merge attributes="class" css:theme=".dir" css:content="ul" />


<after css:content="head script" css:theme="#wrapper" />
<after css:content="#visual-portal-wrapper .row:last-child script"
css:theme="#wrapper" />

</rules>




--
View this message in context: 
http://plone.293351.n2.nabble.com/huge-performance-issues-using-Diazo-tp7372056p7379603.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-setup



--
Ken Wasetis

President&  CMS Solution Architect
Contextual Corp.
office: 847-356-3027
[email protected]

_______________________________________________
Setup mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-setup

Reply via email to