We traditionally have couple of js & css files as shared resources. They are included at the site level. Our new responsive (html 5) pages shouldn't have these shared resources. As they are responsive, they are very brittle .if you remove these css/js from page , they will get added again as they are declared at site level. Finally, I was able to remove them by overriding master xslt. But this will only remove them from preview & generated file. The shared resources are still **** up the page in edit view.
What is the best way to remove them from Edit view? Do i need to write pre-controllers for this? Feels like writing a java class an overkill for such a trivial task. But I can't find another way. May be writing a site level pre-controller a better idea than a page level one? Your ideas are welcome.