Jump to content

Comment Minifier Le Code Html Et Conserver Certains Commentaires ?

Recommended Posts

Quand on coche l'option "Réduction du code HTML", Prestashop supprime les commentaires. 


Comment faire pour conserver certains commentaires qui sont utiles. par exemple: 


- les commentaires conditionnels pour IE: 

<!--[if IE 9]>

<script src="/js/html5shiv.min.js"></script>



- ou bien les commentaires googleon / googleoff (https://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/admin_crawl/preparing.html)


Comment minifier le code html et conserver certains (ou tous les) commentaires ?



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More