Recent Blog Posts
Recently I was debugging an application where it was taking a really long time to load spring application context. The application server folks were complaining because they were getting paged and it was really making development painful as integration test were exceeding over 3+ minutes. We are dealing with lots of legacy xml configuration based modules and are moving to java config but it feels like a big pipe dream unless we were able to write a semi-automated script to convert applicationContext.xml to java config files.
There are still a few browsers that don't support SVGs so it is good practice to provide a proper fall back option. One technique to do this is to utilize the img tag onerror event. Lets say that your site uses all SVGs and if someone makes a request to your site with a browser that doesn't support SVGs this event is fired when an error occurs loading the image. Your HTML might look something like this: