function isRemote(href) {
  return typeof href === 'string' && /(^\/\/)|(:\/\/)/.test(href) && !href.startsWith('file:');
}
Check whether a resource is external or not
@param {string} href Path
@returns {boolean} True if the path is remote