engagementlab / engagement-lab-website-2.x

v2.x of Engagement Lab home.
https://elab.emerson.edu/
0 stars 0 forks source link

Investigate ways to fix project page custom BG #90

Open johnnycrich opened 4 years ago

johnnycrich commented 4 years ago

A longstanding issue has been that the custom color BG per project page has poor paint performance since content is not always fully rendered when we decide where to end dynamic linear gradient, resulting in issue like attached sreencap. We can't wait too long, otherwise it would pop in too late.

Screen Shot 2020-03-11 at 10 43 57 AM

BG should always end midway past vert line.

A potential fix would be to use Scully render plugin to pre-render a class or inline style per project page, if we can have the plugin find where the vert line is in the html and pre-calculate height. https://github.com/scullyio/scully/blob/master/docs/plugins.md#render-plugin