I am building a GUI extension (for Tridion 2013 SP1). The GUI extension has a DataExtender (which adds a column to the component presentations list on a page view). When I examine the logging of the DataExtender, I see that GUI extension is loaded in all kind of views. That is not what I want because this will slow down the performance of Tridion a lot. I want to load the GUI extension only in the PageView, because that is the only place where the output of the DataExtender is used (see the
<ext:view> element in the screenshot).
I already have read this solution: Load GUI Extension JS Files for 1 View but this is only for not loading certain files in a view. What I want is that the dataextender + editorextension is not loaded in other views (so the code is not executed every time).
My question: how to prevent dataextender + editorextension (or whole GUI extension) to only load in a certain view?