JS type test for compression.