Thursday, November 14, 2013

WebJars on their way

Met James Ward, father of WebJars. It looks like these get quite silent growing acceptance. As there is no valid alternatives and integration in many frameworks are popping along with CDN switching, we can happily rely on them.
I also learnt that we are not alone using WebJars in mobile hybrid apps. James is aware of this use cases and there is potential there.

2 comments:

  1. for hybrid apps I see the advantage of including the lib in the app, but for a web app what could be an advantage of fetching it from /webjars instead of getting it directly from our own static CDN?

    ReplyDelete
    Replies
    1. In a somewhat large app with many dependencies, you don't want to manage the script tags (versions, dependency, order) by hand. Like for java, do you write your classpath by hand?
      Note that you can easily switch to a CDN version to optimize your load time but keep the maven dependency management. This for individual libraries.
      Also, having the deps at build time gives you the freedom to concat and optimize your assets the way you like it.

      Delete