iblh / hexo-theme-material

Material Design theme for hexo.
https://iblh.github.io/material-demo/
GNU General Public License v3.0
4.03k stars 564 forks source link

Lazyload "switch" #279

Closed nonnone closed 7 years ago

nonnone commented 7 years ago

Can you add an option of lazyload in the theme configure file since i don't want to use it?

neoFelhz commented 7 years ago

In version 1.3.4, we fix a bug about idie of queue to improve the lazyload. Here is the demo: https://blog.nfz.moe

nonnone commented 7 years ago

Now it works, but it has delay while scrolling, which affects the experience to some degree. And i hope you can add an option so that i can disable it.

nonnone commented 7 years ago

I think my ideal solution will be:

  1. The gallery always use lazyload.
  2. Provide an option to disable head page lazyload in _config.yml.
iblh commented 7 years ago

Sorry, due to the downward compatibility, we decide not to add switch for lazyload. We consider it should be a attribute instead of a function. Moreover, lazyload could enhance the performance of site.

iblh commented 7 years ago

If you are using CloudFlare, plz turn off the optimize function.

In addition, Material Theme has special tech to speed up your site, it's useless to use CloudFlare.