Hacker News new | ask | show | jobs
by supz_k 1048 days ago
Hey! Great question.

The installation code has two parts:

<script> that registers the element <hyvor-talk-comments> element in the place user needs to load comments

The script is hosted in our servers so we can push updates anytime we want.

I hope that makes sense? (Our installation guide: https://talk.hyvor.com/docs/install)

1 comments

Good point, I guess that’s true. So regarding your users being able to see your raw JS? What helped that decision be made? I assume that since it’s not your actual React code that makes it a bit better? Sorta?
Not sure if I understood the questions.

In both iframes and Web Components, a Javascript code (Preact in our case) rendered the comments element, there is no much difference.

Maybe we are not on the same page?

No I think you are right. I guess in this regard it really is not so different after all. Thank you for your responses, I will definitely think about migrating over from the iframe I am using.