Use CSS and JS aggregation for local copies of YUI library

drewish - October 14, 2008 - 23:34
Project:Yahoo YUI
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:drupalhizmetleri
Status:needs review
Description

I was trying to figure out why my site started crawling after enabling the YUI Editor. The short version was that I hadn't specified a list of paths where the editor is used so all the CSS and JS was being included on every page in a way that bypassed the CSS and JS aggregation features. I can understand sending separate files when they're not hosted locally but it's totally crazy if they're on the same site.

Attached is a minimal patch to enable aggregation of the CSS and JS files.

AttachmentSize
yui_cachable.patch2.36 KB

#1

drupalhizmetleri - October 15, 2008 - 20:30
Assigned to:Anonymous» drupalhizmetleri

Your pacth is applied on dev version. Need testing and feedback.

 
 

Drupal is a registered trademark of Dries Buytaert.