I believe a suitable message can be:
Javascript is turned OFF in your browser. For the optimal site
experience, we highly recommend you switch Javascript ON.
Know more here: Turn On Javascript for Chrome.
This helps in the following manner:
- It suggests the user that the website highly depends on Javascript. If it's turned off, the user will know why the website might not behave optimally.
- It recommends the user to switch on Javascript. Now, a non-technical person might not know what Javascript is. Hence, the link is provided to resolve the same.
Also, regarding the resources, it's best to program a website to never depend on any resources, but we all know that isn't possible. Instead, what one can aim for is smooth functioning even if a few functions might not be available. It shouldn't be that the entire website is crippled due to a single function that might require JS.
For example, let's say you're using JS to get the user's geolocation to provide him discounts at Barbershops nearby. However, JS is turned off. Now, you could simply display the message above and have him go through the steps or you could have the user select his location manually.
A simple conditional statement could do the job if the user can do a task manually that JS is blocked for.
It is much better to have a manual way to get the information of the user which can be provided by the user themselves instead of just blatantly showing that JS is disabled. The user does not want to run into technical problems, but will be open to entering the location in a search bar for the above example.
For other cases where JS is required, the message above should suffice.