Adding condition for library to ensure both CDN and library both are not added.