js-vault icon indicating copy to clipboard operation
js-vault copied to clipboard

added discussion threads

Open prateek3255 opened this issue 5 years ago • 8 comments

Added discussion threads using https://github.com/disqus/disqus-react

prateek3255 avatar May 29 '19 12:05 prateek3255

I don't know why the mixed content test is failing because I didn't touch that file.

prateek3255 avatar May 29 '19 14:05 prateek3255

Also, I created a site for jsvault.com using my account, if you want you can change it just by changing the value of this variable https://github.com/nitish24p/js-vault/pull/15/files#diff-3ca9dc81f3a5e4ebb64a4c34f51e5340R8 . You can also move it to environment variable if you want but I don't think that it would be necessary.

prateek3255 avatar May 29 '19 14:05 prateek3255

I also added custom reactions for the pages. image

prateek3255 avatar May 29 '19 14:05 prateek3255

Disqus loads wayyy to much on the page. Hampered performance like crazy. Wondering whether we should just use their api's if they provide any any build the rest on our own Screen Shot 2019-05-30 at 7 56 46 AM

nitish24p avatar May 30 '19 02:05 nitish24p

@nitish24p I think it's happening because there are many requests being sent for fetching the threads and responses for the content, and that would have to be made anyways if we were to build custom components. image And Building a custom thread would get a bit complicated because we would have to integrate so many APIs and handle many edge cases, like, editing a comment, upvoting/downvoting a comment, replying to a comment and thereby opening a new thread, responses, etc.

prateek3255 avatar May 30 '19 11:05 prateek3255

@nitish24p I was scrolling through this https://beebom.com/get-digital-wellbeing-android-pie-no-root/ article when I saw a button in their comments section to load the comments and when I clicked on that button I saw that they were also using disqus for comments then I thought we could also use a similar method to improve the performance to load the comments, and hence I have also created a button that loads the comments when the user clicks on it.

prateek3255 avatar Jun 20 '19 12:06 prateek3255

Voila! 🎉 image

prateek3255 avatar Jun 20 '19 16:06 prateek3255

I don't know why but the netlify preview was generated again and when I ran the audit once again on the new preview I got a perfect score on the preview this time. image

prateek3255 avatar Jun 20 '19 19:06 prateek3255