SSR + DOM Manipulation

Hey all,

when we allow our users to work with certain pieces of content (html emails, for example), we can generate html output on the client or server, and this works well for the most part using SSR.

However, to “clean up” the presentation of certain elements, we need to leverage things like image.naturalHeight. This means that right now, we are generating this html on the client, which isn’t fantastic, for a lot of internal reasons.

Anyway, we can get 95% of the way there with SSR, but hit a roadblock when we need to leverage DOM manipulation/jQuery. Just wondering if anyone out there has had success pairing something like meteorhacks:ssr and jsdom?

1 Like