For any thin parts that needs the DOM one could make JS stubs that mimic behaviour.