improving performance by not outputting unnecessary html on video file pages