For complex projects looking to prevent asset load, rather than just CSS display property. Please look here: