Replies: 4 comments
|
hey Derrick - good eye! We need more front-end devs like you! Not enough people are looking at this stuff, and it matters a ton. |
|
Hey there, So I decided on a approach to load compromise/one for initial displaying of text, and then later load compromise/three dynamically (where I can do more advanced stuff such as PII scrubbing) before submitting a form what confuses me, is the docs on https://github.com/spencermountain/compromise, https://github.com/spencermountain/compromise?tab=readme-ov-file#transform .normalize({}) - clean-up the text in various ways it makes it seem that normalize is available to compromise/one, but then I get TypeError: doc.normalize is not a function but the sources confirms that it is only available to compromise/three |
|
sorry Derrick, i haven't had a chance to look at this properly. |
|
hey, you're right - I've moved the normalize section in the readme file to the appropriate place. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm analyzing my page performance, looking at the Chrome DevTools performance profile, the "Evaluate module" step for compromise.bundle.mjs is taking ~45 ms on my machine.
Here is a screenshot from the profiler showing the long task (I've selected the compromise.bundle.mjs module evaluation):
Context / How I'm using it
Environment: Browser (Chrome)
Bundle: compromise.bundle.mjs (the ES module compromise-three.mjs)
I understand that 45ms of JS evaluation is not terrible, but on a loading my page, it's the longest task.
However, I wanted to ask, is this 45ms evaluation time expected for the main bundle?
All reactions