Blocking JavaScript & CSS Can Affect Indexing

Google at least is no longer just reading the source code, it’s rendering your pages to see the final result.

“Disallowing crawling of JavaScript or CSS files in your site’s robots.txt directly harms how well our algorithms render and index your content and can result in sub-optimal rankings.”