hugo-universal-theme
hugo-universal-theme copied to clipboard
parallax scrolling causing performance issue
the "DO YOU WANT TO SEE MORE?" is causing a serious slowdown of my browser. im on chrome latest with 16 gb ram and core i7
disabling that section speeds it up. can i just remove the parallax background and still have the section?
Hi @sandys,
So far you can't, because the background image is not configurable. But it would be relatively easy to implement it. The affected files are:
-
see_more.html
- Replacing thebackground-image-fixed-2
class by a custom background image. -
config.toml
- Adding a new option to the [see_more] section.
I encourage you to give it a try and submit a PR. Otherwise I will do whenever I can allocate some time for this.
Best, -Adrian
@sandys Try to workaround by saving an 1x1 pixel jpg as /static/img/fixed-background-2.jpg
@schuster-rainer @sandys
Simpler way is just to remove the class and replace it with another such as "background-grey no-mb"