• Resolved markus35425

    (@markus35425)


    Hi. We would love to use simply static and it’s almost working for us. But:

    Our wordpress pages contain HTML that will be re-hydrated by Javascript (a Svelte app).
    When running simply static, it unfortunately changes the HTML slightly (e.g. removing empty style attributes, formatting). When the JS app starts, it tries to re-use (re-hydrate) the HTML it previously generated, but fails due to the static export changes. Example:

    <div style="">

    is turned into just

    <div>

    This is of course okay if you want to minify HTML. But if a JS app expects to find the HTML as it has generated it, it causes a problem.
    Is there a way to disable such optimizations or mark a section of HTML code as DO-NOT-TOUCH?
    If not, could be implemented (e.g. as a payed feature)?

    Kind regards, Markus

    • This topic was modified 11 months, 2 weeks ago by markus35425.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Prevent HTML minification/optimization’ is closed to new replies.