I do a lot of Razor templating (C# with HTML), and when I do something dependent on an external API (e.g., an Instagram widget), I usually wrap it in a try-catch block without handling the exception. I usually just print an HTML comment like, <!— Something went wrong with the Instagram widget. —>.
<!— Something went wrong with the Instagram widget. —>
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.