简体   繁体   English

优化我的网站使用但不在我的网站上的Javascript和CSS?

[英]Optimizing Javascript and CSS used BY my web site but not located ON my website?

I have a Contact Us plugin on my website. 我的网站上有一个“ 联系我们”插件。 It's made and operated by Dropifi. 它由Dropifi制作和操作。 Recently I've been trying to optimize my site for SEO/Speed with googles PageSpeed Insights tool. 最近,我一直在尝试使用Google PageSpeed Insights工具针对SEO / Speed优化我的网站。 Now, I've enabled compression using with GZip for everything on my site, but google is pointing out .js and .css files located on Dropifis site as necessary to compress. 现在,我已经使用GZip对网站上的所有内容启用了压缩功能,但google指出了Dropifis网站上的.js和.css文件,以进行压缩。 Its also asking me to leverage browser caching for files on their site as well. 它还要求我也利用浏览器缓存在其站点上查找文件。 Is there ANY way to help this without removing the plugin? 有什么办法可以在不删除插件的情况下帮助您?

You could use both cssminifier.com and javascript-minifier.com and their "API". 您可以同时使用cssminifier.comjavascript-minifier.com及其“ API”。

Just send a POST-Request to http://cssminifier.com/raw?input=YOURCSSFILE and http://javascript-minifier.com/raw?input=YOURJSFILE and you receive the compressed version. 只需将POST请求发送到http://cssminifier.com/raw?input=YOURCSSFILEhttp://javascript-minifier.com/raw?input=YOURJSFILE ,即可收到压缩版本。

Notice that I'm not sure, if they are fast enough to achieve an improvement, but the CSS and JS Code will be compressed, just the way you want it. 请注意,我不确定它们是否足够快以实现改进,但是CSS和JS代码将按照您想要的方式进行压缩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Flash,Javascript和JSP优化我的Web应用程序 - Optimizing my web application using Flash, Javascript and JSP 将我的Javascript,JQuery和CSS集成到现有站点中 - Integrate my Javascript, JQuery and CSS into an existing site 阻止我的javascript在另一个网站上运行 - Prevent my javascript running on another web site Javascript:网站可以在我的计算机上正常运行,但是在较旧的计算机上,它可以将该网站挂起 - Javascript: Website runs fine on my computer, but on older computer it hangs the site JavaScript 从网站检索文本并显示在我的网站上 - JavaScript to retrieve text from a website and display on my site 我的 Python 代码如何获取位于文本/javascript 中的值<script> from a website? - How can my Python code obtain a value located inside a text/javascript <script> from a website? 使用我的JavaScript登录该网站 - login into the site with my javascript JavaScript无法在我的网站上运行 - Javascript not working in my site 我的 html/javascript/css 网站在 IE 中工作,但在 FF 中不工作 - My html/javascript/css site works in IE but not in FF 需要帮助优化我的 Javascript 以进行 canvas 渲染 - Need help optimizing my Javascript for canvas rendering
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM