For shadows, you would have to specify the shadow config per object instance or apply an override to each class that you want to affect globally. For opacity, you'd have to hack up the CSS.
But really, shadows and opacity are not very heavy. Opacity is just a CSS setting, and shadows are disabled while dragging and only displayed once when a window is positioned. So you wouldn't be saving much by disabling them. The images themselves get cached after initial load.