Avoid injecting JS shims into non-JS resources.