Hi all, just a quick question, Why does a file with just:

<h1>Completely Blank </h1> <br> <style> html { color-scheme: light dark; } </style>

…turn into a 613,141-character bloated blob with embedded:

🧠 NLP fallback engines, 🌐 Cloudflare callouts, 🧾 Regex dictionaries, 🧩 Tag/ID trackers, 🤖 Language corpus logic, 📚 Word class classifiers (Plural, Ordinal, Comparative)

Is this intentional for runtime fallback purposes, or just bundled by default for safety? Genuinely curious if there’s a flag to trim it down. Don’t get me wrong i love the site and unique prompt building and design, It just feels a bit odd seeing all that baked into a blank export — especially when it includes tracking and a slimline corpus.

  • perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    Cloudflare callouts

    Good catch, thanks. Cloudflare seems to inject its DDoS/analytics stuff into any HTML page returned by the server, regardless of Content-Disposition header which seems like a bug on their end. I’m just manually stripping for now. You’ll need to edit your generator to clear the download cache.

    As for the others, yeah, it embeds the whole perchance engine, since it can’t know in advance (in the general case, at least) whether your code will use any particular perchance engine feature at runtime (JavaScript is a very dynamic language). The v2 engine will be a lot more efficient both in terms of size and speed, but that’s unfortunately not going to land any time soon.