I’m pretty sure this is not possible, but just thought I would throw it out there. I want to know if there is a way from the controller (before the view gets rendered) if the browser has JavaScript disabled. I’m sure other people have ran into this working on SEO.
Share
Nope. The server has no view into the client to determine what features the browser has enabled. You can however use a noscript tag to render content if js is disabled.
If you want to record whether or not it is enabled for analytics, how about sending an ajax call in javascript once the page is loaded? If js is disabled, the call won’t go through.