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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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