shinsenter / defer.js

🥇 A lightweight JavaScript library that helps you lazy load (almost) anything. Defer.js is dependency-free, highly efficient, and optimized for Web Vitals.
https://shinsenter.github.io/defer.js/
MIT License
277 stars 44 forks source link

Ignore code & pre tag when compress html #45

Closed khiemledev closed 4 years ago

khiemledev commented 4 years ago

My website is a blog related to code. So when i use orther plugin to highlight my code, it doesn't break line because it is compressed

Solution: ignore pre and code tag when compress html.

Temporary solution: disable compress html

My website: https://khiemle.dev

shinsenter commented 4 years ago

@khiemle2409 This library is just a small JavaScript library, it has no effect on CODE, PRE tags of HTML structure on your website so I don't think this is a bug related to this library. If you are using a library for Wordpress, please open an issue here.