I think what you have is good. We should signal that the webjars! loader is deprecated and will be removed from future releases. When that time comes we can remove this code.