And on the flip side you can trivially detect if some .js file was blocked from loading with some inline <script> tag that checks for whatever the .js file should expose.
The third case with the browser not implementing some feature is a bit more work but usually also rather easy to do.