How to create a custom service for CSS compression?

CSSResizer.com absolutely free allows to organize CSS optimizer on your website. To this end, our team has developed a special API.

  • The functional corresponds to the mechanism of the fast compression.
  • Service interface has an adaptive design.
  • Code optimization is done without reloading the page.
  • Does not create an additional burden on your server.

Add CSS optimizer on your resource.

First connect jQuery library (if it is not yet connected)

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

Behind her connect this script

<script src="https://cssresizer.com/api/en/api-1.0.js"></script>

Finally, place this code in the page where you want to display optimizer

<div id="wrap_cssresizer"><p id="head_cssresizer">Fast styles compression from <a href="https://cssresizer.com" id="link_cssresizer">CSSResizer.com</a></p></div>

Note that the form of optimizer will take up all the available space in width. To limit the horizontal size, put the code into the block with the specified maximum width.

Your online service for the CSS compression ready to go!