Closed atulbhatt-system32 closed 8 months ago
@atulbhatt-system32 , so you mean morphdom
behaves strangely even without changing the script tags?
@atulbhatt-system32 , so you mean
morphdom
behaves strangely even without changing the script tags?
@jasonliu7040 it doesn't behaves strangely I think. It behaves in that way because something is definitely changing and is different when we get html from stage and when we parse and generate it from parser.
Something can be rnbw-stage-id
for example.
Also, when the sequence of the content is changes for example:
</body>
<script src="https://guide.rnbw.dev/rnbw-map.js"></script>
<script src="rnbw-editor.js"></script>
<script src="rnbw-header.js"></script>
<script src="rnbw-files.js"></script>
<script src="rnbw-blog.js"></script>
<script src="rnbw-nav.js"></script>
<script src="rnbw-keyboard.js"></script>
<script src="rnbw-footer.js"></script>
<script src="rnbw-preview.js"></script>
We have disabled update of
link, style, and script
tags. Whenever there is some change in the html, we have to compare the entire html tree. For some reasonmorphdom
treats these tags specially script tag and removes it and add a new.I am yet to find a way to be able to compare them with some combination and prevent this.
If I don't do prevent this:
There's a refresh kind of feeling is there.
Web Components or anything related to JS goes crazy.
[x] #391
[x] #393
[x] #394