There have been a couple of similar posts, but I’m not sure this has specifically been answered…
I’ve followed https://simon-thompson.me/simple-dom-manipulation-via-jquery-in-cloudflare-workers/ to utilise Cheerio to parse/modify the HTML content of my page.
The only problem is that I occasionally (Randomly) get 1102 errors when viewing the pages live. I can refresh several times and the error goes away. I don’t get an error in the preview window.
I’m only testing on the free plan at the moment, but obviously wouldn’t want this on a live implementation. Is parsing HTML like this likely to use too much CPU time to be reliable in production?
Is there a way to track the amount of CPU time we’re utilising in a call?
Are there plans to implement HTML parsing in Cloudflare workers natively?