-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Fix current markdown detection bug #41
Conversation
✅ Deploy Preview for cmp-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hmmm. perfectly fixes it offline but squished images still show up on initial load online for some reason. Will try to evade making the LinkedIn request in the first place to see if this solves it. |
This reverts commit ca4be9f.
Didn't fix it so I reverted. Not the biggest deal ever since it only happens in the initial load of the website (first itme the browser sees it). Further ones load the images with no problem. Also think that if the internet is fast enough so that the images are loaded from the server before the components do in the initial load then it solves it. |
Made one more commit to force the image to take height in all cases so that even if it fails to load in the initial loading it doesn't squish and stays circular. |
@Iten-No-404 merge at your leisure should this PR make sense. |
@EssamWisam, The fix seems to be working properly. |
Could also be that internet is faster at your side. The check I do is launch the website from an incognito tab so force the browser not to use any cache.
I find it comical that they want users to pay to be able to invite... I can assure you that for me the behaviour was consistent across both. |
I doubt it but maybe.
I sometimes launched it in incognito mode and when just reloading the page, I do a deep reload.
Many companies monetize the most basic features these days...🤦🏻♀️
Alright, how about trying again in a few hours? The internet speed is bound to be different then. I can merge this PR and try it out a bit more on the Vercel deployment instead. Either way, it's much better than the squished images. Nice work. |
Yes, the ones that barely load correspond to squished images (now white disks). This should no longer happen upon refresh or visiting site again from same browser or at least this is what happens to me. |
Tried a couple of times in both deployments and the squished images bug doesn't happen at all which is good news.
Indeed, that's what I have experienced as well. |
Iten, let me elaborate, I do expect the squished images bug not to occur because I modified the code so that instead of the image being "squished", it becomes a white disk as in my comments above. So this converts the squished images bug into empty images bug. What I was saying earlier is that the empty images bug happens for me only in the initial load from an icognito tab/new browser. It also only happens starting from about half the list like you showed.
Okay. Makes sense now. |
I remember that @Iten-No-404 had a mechanism in place that would detect if loading LinkedIn image has failed and render the thumb if it has. It turns out that reason it didn't work (hence, squished images) was that the
currentMarkdown
when in the courses page was./department/...
while../department
was what's in the if check. I don't know when did that change but I believe it worked correctly when it was first implemented.This is meant to be a temporary measure until @KnockerPulsar finds time to integrate the LinkedIn scraping feature he worked on. #29 #33