Load extension only when using a particular theme

Do you think is it possible to an extension only when my app uses a particular theme? I mean: ‘load extension X when using theme Y’, so ext X will not be loaded if I use theme Z.

For example: I want to create to themes, one with bootstrap ext and other one with foundation. It has not sense to load both extensions, otherwise it is very smart to bootstrap with theme that use that, or load foundation with other theme that uses foundation css framework.

What do you think?

tia,

Danilo

go to this page: http://www.yiiframework.com/ and read:

"Yii only loads the features that you need. It has powerful caching support. It is explicitly designed to work efficiently with AJAX."

EVERY extension is loaded only when it is required… this is how Yii works