change blocking js to incline and added media attributes to links