远程 Javascript 文件,在 PartialViewModel 中引用,未在 Firefox 中加载

发布于 2024-12-23 05:19:44 字数 693 浏览 3 评论 0原文

我的 MVC 应用程序中有一个 PartialViewModel,其中包含以下设置:

@model MyModel

<script type="text/javascript" src="PathToThirdPartyJSFile"></script>
<script type = "text/javascript" language="javascript">

   //Use Function in ThirdPartyJS File.

</script>

此部分视图模型被插入到几个不同页面上的 @section PageJavaScriptBottom 中。由于供应商请求,未在本地引用 javascript 文件。

使用 Firefox 9.0.1,此远程 Javascript 文件不会仅在我的会话中且仅在 Firefox 中被调用/加载。该文件在 IE、Chrome 和 Safari 中加载良好。 Firebug 没有提供任何见解。 Firefox 中的 Fiddler 显示该请求甚至没有被发出。我已经清除了缓存、cookies 和所有我能想到的东西。我可以直接在 Firefox 中导航到远程 JS 文件,没有任何问题。

我办公室的其他人无法在使用 Firefox 9.0.1 的计算机上重现此问题。

我还可以做哪些其他诊断来尝试找出这个问题是什么?

I have a PartialViewModel in my MVC application that contains the following set up:

@model MyModel

<script type="text/javascript" src="PathToThirdPartyJSFile"></script>
<script type = "text/javascript" language="javascript">

   //Use Function in ThirdPartyJS File.

</script>

This partial view model gets inserted into the @section PageJavaScriptBottom on a few different pages. The javascript file is not referenced locally due to vendor request.

Using Firefox 9.0.1, this remote Javascript file does not get called/loaded for my session only and in Firefox only. The file loads fine in IE, Chrome and Safari. Firebug provides no insight. Fiddler in Firefox shows that the request doesn't even get made. I've cleared cache, cookies and everything else I can think of. I can navigate to the remote JS file directly in Firefox with no issue.

Other folks in my office cannot reproduce this issue on their machines with Firefox 9.0.1.

What are some other diagnostics things that I can do to try and figure out what this issue is?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坏尐絯℡ 2024-12-30 05:19:44

已解决:供应商 Javascript 文件的主机 URL 列在我在 Firefox 安装中使用的 AdBlock 过滤器列表中。

Solved: The host URL for the Vendor's Javascript File is listed in the AdBlock filter list I was using in my Firefox installation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文