Can I use JavaScript on the custom 502 error page?

Responsive Ad Header

Question

Grade: Education Subject: Support
Can I use JavaScript on the custom 502 error page?
Asked by:
50 Viewed 50 Answers

Answer (50)

Best Answer
(396)
While you *can* use JavaScript, it's generally not recommended for 502 error pages. Many browsers will disable JavaScript when an error occurs, so relying on JavaScript for functionality is unreliable. If you must use JavaScript, ensure it doesn't interfere with the basic display of the error message and that it's implemented with error handling to gracefully handle JavaScript being disabled.