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

Sets incorrect encoding #31

Closed Cl0804 closed 5 years ago

Cl0804 commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Install Wordpress and a custom theme of your choice.
  2. Ensure header.php has <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
  3. Activate plugin.
  4. Open console and see that encoding has been set to ASCII

Expected behavior When function toHtml is called $charset should be UTF-8 however it is not and is being set to ASCII somewhere along the process.

Desktop (please complete the following information):

Additional context Plugin works amazing apart from this annoying issue.

shinsenter commented 5 years ago

Thank you for your feedback. I will check it out and get back to you as soon as possible.

shinsenter commented 5 years ago

This issue was fixed here: https://github.com/shinsenter/defer-wordpress