我合并了所有.js文件......现在我的网站坏了。我如何解决它? ! [英] I combined all of my .js files... Now my website is broken. How do I fix it? !

查看:81
本文介绍了我合并了所有.js文件......现在我的网站坏了。我如何解决它? !的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了加快加载速度,我尝试将所有.js文件合并到一个大的.combined.js文件中。我继续编辑我的源代码以反映以下内容(它引用了原始的.JS文件):



{{'combined.js'| asset_url | script_tag}}



我找到并替换了原始.js文件的大多数引用...但是对于我的生活找不到4/24引用。现在网站基本上已经破解了......主页滑块不起作用,多语言不受支持等等。



我正在运行shopify如果这有帮助



我尝试了什么:



我尝试重新创建.js文件,以取回滑块。没工作。我尝试创建一个新的combined.js文件。没工作。我浏览了整个编码列表,以替换我在组合文件中使用的每个.js引用。没工作,仍然无法找到4/24。不知道怎么解决这个问题,而且我有点沮丧。

In an attempt to get faster loading times, I tried to combine all of my .js files into one big ".combined.js" file. I went on to edit my source code to reflect the following (where it referenced the original .JS file):

{{ 'combined.js'| asset_url | script_tag }}

I found and replaced most of the references to the original .js files... but for the life of me can't find 4/24 references. Now the website is essentially broken... The home page slider wont work, multi language is unsupported.. etc etc.

I am running shopify if this helps

What I have tried:

I tried re-creating .js files, to get back the slider. Didn't work. I tried creating a new combined.js file. Didn't work. I went through the entire list of coding to replace every ".js"reference I used in the combined files. Didn't work, still cant find 4/24. Don't know how to fix this, and I'm a bit devastated.

推荐答案

正如ppolymorphe建议的那样,从最新的备份中恢复是最好的 - 事实上,可能只是 - 我们可以从这个距离给出的解决方案。确保它完全正常工作。



完成后,首先合并两个文件,然后检查整个站点。如果有效,请备份。

添加第三个。测试一下。备份它。

继续直到你失败 - 然后你可以仔细查看它失败的原因,给出你刚刚做出的改变。



我们无法为您做任何事情:我们无法访问您的网站源代码!
As ppolymorphe has suggested, restoring from your latest backup is the best - indeed, probably only - solution we can give from this distance. Make sure it works fully.

When you have done that, start by combining two files, and check the whole site. If it works, back it up.
Add a third. Test it. Back it up.
Continue until you get a failure - you can then look closely at why it fails, given the changes you just made.

We can't do any of that for you: we do not have any access to your website source code!


这篇关于我合并了所有.js文件......现在我的网站坏了。我如何解决它? !的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆