W3C home > Mailing lists > Public > public-houdini@w3.org > October 2019

Should I load multiple registerLayout-classes in a one or in multiple worklets?

From: Bob Hamblok <post@bhamblok.be>
Date: Mon, 7 Oct 2019 16:26:05 +0200
Message-ID: <CAE8qMXHnAoOuAbrSKtZ3V_QuwTa26fZmLO=uxJ_cKQUqSerB0A@mail.gmail.com>
To: public-houdini@w3.org
Dear public-houdini-list,

What should I do if I'm writing an application which has multiple
"registerLayout" layout-api classes (I'm talking about more than 20
classes)?
- Should I call "registerLayout" multiple times from within one worklet
(one bundled worklet.js file loaded via one "CSS.layoutWorklet.addModule")?
- Or should I create multiple worklets, each with one "registerLayout"?

Which one of these options would be most performant?
I cannot find this information in any resources (W3C-specs, Github, talks,
blogs, examples, ...)

Thanks a lot,

*Bob Hamblok | BOAPP GCV*
Freelance Software Engineer | Architect | Consultant
founder at neoScores NV

*EMAIL* post@bhamblok.be
*PHONE* +32 476 74 78 42

*ADDRESS* Jennevalstraat 18, BE-2600 Antwerp, Belgium
*VAT* BE0682.695.007
Received on Monday, 7 October 2019 14:26:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:53:28 UTC