如何消除渲染阻塞的JavaScript和CSS? [英] How to eliminate render-blocking javascript and CSS ?

查看:132
本文介绍了如何消除渲染阻塞的JavaScript和CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Opencart CMS中创建的在线购物网站。最近我发现了谷歌页面速度工具的一个大问题。他们告诉我,我有5个阻止脚本资源和14个阻止CSS资源。这会导致我的页面呈现延迟。



我可以在不等待加载以下资源的情况下渲染大约1%的页面。尝试推迟或异步加载阻止资源,或直接在HTML中内联这些资源的关键部分。





请帮帮我一个人。我如何解决这个问题?



我尝试了什么:



我使用下面的代码模式进入我的网站:

I have an online shopping site which created in Opencart CMS. Recent I found a big problem by google page speed tool. They show me that,I have 5 blocking script resources and 14 blocking CSS resources. This causes a delay in rendering my page.

Approximately 1% of my page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.


Please Help me someone. How I fix the problem?

What I have tried:

I used the below code pattern into in to my site as same:

推荐答案

引用:

请帮助我。



如果没有访问您的网站源代码,将无法帮助您。


There is no way to help you without access to your site source code.

引用:

我如何解决问题?



因为它是一个购物网站,你不能让随机陌生人有权访问到网站来源。

唯一的办法就是雇用一个专业的程序员或你所在地附近的公司。

聘请自由职业者&在线查找自由职业者 - 自由职业者 [ ^ ]


这篇关于如何消除渲染阻塞的JavaScript和CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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