[Setup] huge performance issues using Diazo

emb03 elaine at ssc.ucla.edu
Mon Mar 19 17:51:00 UTC 2012


Thanks, Laurence, for pointing me in the right direction. This ended up working and getting rid of the duplicate style sheets:

    <before css:content="head style, head link, head meta" css:theme-children="head" />

Thanks for your hard work, we appreciate it!

Elaine

Elaine Blakeman
UCLA Social Sciences Computing
PAB 2041 (Public Affairs Building)
Web and Multimedia Development
Elaine at ssc.ucla.edu<mailto:Elaine at ssc.ucla.edu>
310-206-1524








On Mar 16, 2012, at 6:17 PM, Laurence Rowe [via Plone] wrote:

emb03 wrote
Hi,

I would be interested in how to optimize a rules file. I am using tag selectors (I can't fathom not using them) and we are having a weird  problem with css from plone sunburst theme replicating themselves 6 times on the front page (the same css file shows up six times). I based my theme on Sunburst and wondering if that is causing this issue.

Elaine
The rule giving you the problem is this one:


 <before css:content="head link" css:theme="head link" />


Diazo rules may match multiple nodes in each document. This rule places a copy of all of the link tags from the content before each link tag in the theme. (I'm guessing your theme has 6 link tags in the head.) You probably want to say something like this instead:


 <before css:content="head link" theme="/head/link[1]" />


Laurence

________________________________
If you reply to this email, your message will be added to the discussion below:
http://plone.293351.n2.nabble.com/huge-performance-issues-using-Diazo-tp7372056p7380649.html
To unsubscribe from huge performance issues using Diazo, click here<http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7372056&code=ZWxhaW5lQHNzYy51Y2xhLmVkdXw3MzcyMDU2fDEzNzEwMDI2OA==>.
NAML<http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>



--
View this message in context: http://plone.293351.n2.nabble.com/huge-performance-issues-using-Diazo-tp7372056p7386615.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20120319/5370e4e9/attachment.html>


More information about the Setup mailing list