Ignore remote assets in useref.assets().
Check if an URL is absolute.
Call dependencies only when neccessary.
Clean up var declarations.