hugo-universal-theme icon indicating copy to clipboard operation
hugo-universal-theme copied to clipboard

parallax scrolling causing performance issue

Open sandys opened this issue 8 years ago • 3 comments

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?

sandys avatar Nov 22 '16 14:11 sandys

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 the background-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

adrianmo avatar Jan 18 '17 09:01 adrianmo

@sandys Try to workaround by saving an 1x1 pixel jpg as /static/img/fixed-background-2.jpg

schuster-rainer avatar Mar 08 '17 23:03 schuster-rainer

@schuster-rainer @sandys

Simpler way is just to remove the class and replace it with another such as "background-grey no-mb"

GeorgeWL avatar Jun 06 '17 23:06 GeorgeWL