Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

I´m thinking in compress the pages of my site. The regular ones with HTML, JavaScript (or Jquery), CSS and PHP. I´m not talking about the *.css or *.js files, if not, the rest.

Which is the best method, soft, way (etc) to do it without generating conflicts with the code?

All these files have parts of codes of the previous languages: the general structure of html (tags and DIV for layout), some internal CSS (style and inline), several JavaScript call (to other *.js files and some functions like show, hide, toogle, onclick, etc) and PHP.

I tried to merge all the lines with my Notepad++ but it gave me a lot of errors, so I decided to go back.

Any suggestion?

Thanks a lot

share|improve this question
    
Are you talking about, say, gzip compression, or are you speaking strictly of concatenation and minification? – icktoofay Aug 29 at 23:18
    
I think what you are describing is called "minimizing"... Compression is usually used in reference to gzipping your content at the server level. Both are recommended, but I'd argue that the gzip compression is more important than minimization. What type of web server are you using? – scunliffe Aug 29 at 23:18
    
@scunliffe I´m thinking in what can be better! hahaha. Honestly, I´m reading about YUI and several minimizers, but I want to convert all my files, not just *.css or *.js, if not, also, those who have several code and languages. I´m using APACHE with the service of HOSTGATOR. And I put this, because I do not know HOW much I can configure under a shared hosting account. Thanks :D – Tom Aug 30 at 1:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.