kontur / fontsampler-wordpress-plugin

A Wordpress plugin that let's users interactively preview and test webfonts
http://fontsampler.johannesneumeier.com
GNU General Public License v3.0
38 stars 8 forks source link

fontsampler.event.afterinit not firing in Firefox #160

Closed hamblyfreeman closed 4 years ago

hamblyfreeman commented 4 years ago

Hi there

I've got an issue where fontsampler.event.afterinit doesn't always fire in Firefox (works fine in Chrome).

On the occasion where this doesn't fire, I see the console warning:

Will-change memory consumption is too high. Budget limit is the document surface area multiplied by 3 (2667868 px). Occurrences of will-change over the budget will be ignored.

Is there any reason why this would be? I currently run a bunch of JS wrap() commands on page load to restyle the type tester, and then reveal the whole block (by changing the opacity) on fontsampler.event.afterinit, but right now this last piece of the puzzle is only firing 50% of the time in Firefox.

Any advice appreciated.

kontur commented 4 years ago

Sorry for the late reply.

Well, to be perfectly honest I have never seen anything like that console warning, so you have my interest. Is there anything else about the setup you can tell me that might help shed some light on this? The fontsampler should out of the box be hidden and revealed only after init — why do you need to re-wrap this functionality, or what are you changing while hiding the fontsampler that you cannot otherwise achieve?

kontur commented 4 years ago

@hamblyfreeman Any more information on this issue?