I made an application on Sina Weibo to compress JS Code and CSS.

Source: Internet
Author: User

I am bored with a microblog application. Unfortunately, the application does not pass the review and cannot enter the Application List ...... (In fact, Weibo can actually change many things and do many things .)

 

 

 

In fact this thing fully utilizes http://ganquan.info/yui? Hl = ZH-CN API

 

This tool is intended for webmasters and programmers to process and optimize code. JavaScript code can be compressed as follows: Yui compressor, uglifyjs, and closure compiler. CSS Code only uses: Yui compressor for compression. {This application does not require authorization from your Weibo account. You only need to execute the following commands .} Usage: (in the Sina Weibo post box, the command is case sensitive and must strictly follow the syntax)

 

@ Wind Yin-> {type}-> {engine}-> {URL} {type} type, confirm that you are using CSS or JS Code {engine}. The option n = does not use any engine optimization. Only blank lines are deleted. Y = Yui compressor (CSS code can only use y) u = uglifyjs c = closure compile B = format and organize JS Code for better reading. {URL} = the URL of the Code to be processed. It must end with. CSS or. js. E. g:

 

@ Feng Yin-> js-> Y-> http: // www. your domain name. COM/1. JS @ wind Yin-> CSS-> Y-> http: // www. your domain name. COM/1.css @ wind Yin-> js-> B-> http: // www. your domain name. COM/2. the first example of JS Code is JavaScript code compressed by Yui (JS Code can select three engines or use "N" n = by default, only blank lines of code are cleared .) The second example is that CSS Code uses the y engine (CSS code can only use y) the third example is to format and organize the JS Code. A processed download link will be automatically generated within one minute after the pipeline is sent, and sent to the microblog where your command is sent as a comment. Because code processing is based on parser optimization, the above optimization is safe and will not cause code errors.

If you have any usage problems, please Weibo @ Feng Yin.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.