Closed Tealk closed 3 years ago
Thanks for raising @Tealk.
We did swap out the diff library in the latest release which can affect things.
Looking at your page, I can see there's a lot going on in the HTML code of the content. There are a lot of additional attributes and non-visible elements within the code. Looks like the content may have been created or copied from a platform using the "Slate" editor?
One thing in the code is a large amount of base64 encoded content (About 54KB worth). From my testing, removing just that improves things massively. I've opened (https://github.com/ssddanbrown/HtmlDiff/issues/1) to look into that further but ideally that would not be in your page content. I'd imagine all the other content in the code is also having an affect here.
Thanks for the quick reply
How can I remove this? I copied the texts from a PDF which I created using LaTeX.
@Tealk I can't think of really simple way unfortunately, the editor does some cleaning rules but this content seems to miss detection.
I've created a little cleaner for this here though: https://jsfiddle.net/ssddanbrown/8tf5opda/20/ Just paste the raw HTML content in the ouput and get cleaned stuff in the output, Should have minimal affect on styles and not touch text. There's a button in the editor toolbar, towards the right to get/set the raw code.
Thanks for the script, there seems to have been some superfluous code in it
IN: 151052; OUT: 11396; (chars)
IN: 21261; OUT: 8031; (chars)
IN: 77611; OUT: 14238; (chars)
IN: 92279; OUT: 16209; (chars)
IN: 9037; OUT: 1907; (chars)
IN: 105235; OUT: 6908; (chars)
Is it possible to make a one-time donation for your project?
Awesome, Gald that helped! Did that get the "Changes" view working? (Might still not be able to see changes between the old and cleaned code, only between two cleaned revisions).
There only donation channel i have is github sponsors (https://github.com/sponsors/ssddanbrown) but it's re-occuring although you could probably cancel right after. It's not needed at all though.
Yes the changes can be seen only from the corrected version.
this is a very good project and your commitment to solve my problem is also wonderful, something like this deserves support
Thanks @Tealk,
I've now dived into the diffing library and found the biggest point of slowdown, which would have originally led you a white screen. Changes in https://github.com/ssddanbrown/HtmlDiff/commit/73f41bd4d23b1b9e3860aeaefdddd212c580f2ed should speed things up by 20x from my testing, maybe more/less depending on content.
This updated version of the library is now in the main branch, ready to be part of the next feature release so I will close this off.
Describe the bug When I go to the changes I get only a white page displayed, I noticed this since the last update.
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior That the changes of the page are displayed.
Screenshots If applicable, add screenshots to help explain your problem.
Your Configuration (please complete the following information):
Additional context nginx error.log