脚本无法在 iPhone 上加载
最近,我制作了我的作品集网站,当我今天测试它时,一切都在所有最流行的浏览器上运行良好。问题是 - 我只能访问装有 Android 的手机和装有 Windows 的笔记本电脑。这样我就无法测试 Apple 设备和 Safari 本身。
为此,我让我的朋友用她的手机(她有 iPhone)访问我的网站,这样我就可以检查一切是否正常。不幸的是,当她进入我的域时,Safari 根本无法加载 JavaScript。更糟糕的是,她随后安装了 Google Chrome 和 Mozilla Firefox,同样的事情发生了。
我们还在 MacBook 上测试了我的网站 - 当时也在 Safari 和 Chrome 上测试。在 Safari 上,出现了一些错误(看起来至少部分脚本有效),而在 Chrome 上一切正常。我无法探究这些问题,因为我们通过电话的时间有限。
现在,我的主要问题是 - 为什么 iPhone 上的浏览器无法加载脚本?如果使用 iPhone 或其他 Apple 设备的人可以告诉我那里发生了什么,我将非常感激。另一个问题是 MacBook 上的 Safari。因为在这种情况下,我无法检测到任何有用的东西,除了脚本的一部分似乎在工作之外。
另外,我不知道这是否重要,但我使用 Webpack 来捆绑所有 JavaScript 文件。所有代码+域名均可在以下链接中找到:
网站域名为:www.pmiecznik.pl
如果您想查看这些脚本/样式文件 - 它们位于 我的 GitHub 存储库。
Recently I made my portfolio website and as I tested it today, everything works just fine on all of the most popular browsers. The problem is - I have access only to phones with Android and laptops with Windows. That way I am unable to test Apple devices and Safari itself.
For that, I asked my friend to visit my website on her phone (she has iPhone), so I can check if everything is ok. Unfortunately, when she entered my domain, Safari was unable to load JavaScript at all. What's even worse, she then installed Google Chrome and Mozilla Firefox, and the same stuff happened.
We were testing my website also on MacBook - that time also on Safari and Chrome. On Safari, there were some errors (it seems that at least part of the script worked), and on Chrome everything was right. I wasn't able to explore the problems, as we only had limited time via phone call.
Right now, my main issue is - why any browser on iPhone was unable to load the script? I would be very grateful if someone with iPhone or other Apple device could tell me what's happening there. The additional issue would be the Safari on MacBook. Because in this case, I was unable to detect anything useful, other than that only part of the script seems to be working.
Also, I don't know if that matters, but I used Webpack to bundle all JavaScript files. All code + domain can be found in the links below:
The website domain is: www.pmiecznik.pl
If you want to see those scripts/ style files - they are in the src folder in my GitHub repository.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论