DEV Community

Cover image for I Got a Perfect Lighthouse Score on My First Portfolio Website!

I Got a Perfect Lighthouse Score on My First Portfolio Website!

Pranav Birajdar on March 23, 2021

I recently finished building and hosting my personal website. My goal was to keep the website static, clean, and fast. In order to make sure that I...
Collapse
 
jh3y profile image
Jhey Tompkins

With regards to people bashing on the tech stack used, the design, etc. You do you!

And give yourself a pat on the back for deploying something and trying out new tools. Congrats on trying new stuff and learning along the way. Next is a great choice 👍

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you mate! Appreciate the kind words. 😊

Collapse
 
adarshaacharya profile image
Aadarsha Acharya 🚀

Awesome website man !
I built my portfolio using Gatsby and after trying Next.js for past few months, I'm planning to migrate to Next. Is this project open sourced? If it is, please provide github link.

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

github.com/prnvbirajdar/Personal-W...

Here you go buddy!

I'd also suggest you go through my previous post. It has a lot of resources for using Next.js to build a blog.

dev.to/prnvbirajdar/list-of-resour...

Collapse
 
redrogue12 profile image
Edgar X. González Cortés

Man I love this! I am building a website for my sister and was learning next.js to make a static website that pulled her wordpress blog data.

Thanks!

Collapse
 
adarshaacharya profile image
Aadarsha Acharya 🚀

Thanks mate ! Will check it out.

Collapse
 
larsejaas profile image
Lars Ejaas

How would you compare the two? Of corse it's a no-brainer if you need backend, but what a out strictly SSR-stuff?

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

I think Gatsby is great for SSG since it has tons of plugins specifically catering SSG apps. However there's an added complexity of GraphQL. Someone can correct me if I'm wrong.

From what I have heard and read, Gatsby is entering the Server Side Rendering game as well.

If you look at the NPM downloads though, Next is king rn!

Thread Thread
 
adarshaacharya profile image
Aadarsha Acharya 🚀

Gatsby doesn't have that much complexity in GraphQL stuffs. Everything is built in you just have to query the stuffs you need in GraphQL playground. Infact found it quite easier to work with.

But the build time of Gatsby is too slow. And the caching isn't that great so you need to restart server time to time which is quite annoying.
Gatsby 3.0 has been released recently which is believed to be quite faster, but haven't migrated to that yet.

Collapse
 
supportic profile image
Supportic

You could improve on accessibility what lighthouse could not catch.
e.g. your menu toggle button is not toggeling aria-expanded
or you have tabindex=0 on a div around your logo link. The link itself has by default tabindex=0. Use p (block) or span (inline) tags for text elements.

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you for the feedback. I totally forgot about the menu toggle accessibility. Nice catch!

Collapse
 
selion05 profile image
Selion05

Just some things I noticed.

  • /about: The footer isn't at the bottom.
  • colors: Hard to read, kind of painful. I don't like black for a dark theme, use dark grays!
  • light theme: Think about readability, people will want to read on you page in the sun or shiny rooms as well and then light theme >> dark theme.

besides that, 👍!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Sorry, I did not understand the first remark.
Dark grays, got it!
Yeah, I am in process of adding a light theme. Many folks suggested that.

Collapse
 
selion05 profile image
Selion05

On pranav-birajdar.vercel.app/about

I have still black space below your footer because the content is not long enough.
Have a look at e.g. css-tricks.com/couple-takes-sticky...

Thread Thread
 
prnvbirajdar profile image
Pranav Birajdar

Thanks! I got what you're saying. I'll get on it!

Collapse
 
pankajpatel profile image
Pankaj Patel

This is some good looking website.

For Blog page, I would recommend to make the Post card bit bigger with more excerpt. and publish date below title (as it is not the important info here)

For Projects, I would recommend to align the project image to right side (alternate end of the text content)

For domains, checkout Bigrock (.com for INR 399 via affiliate bigrock-in.sjv.io/c/1658967/101690...) guessing that you can buy domain in India

Otherwise google, namechap, netlify, cloudflre offer good price on domain names.

Let me know if you need some help setting up.

Collapse
 
quantuumsnot profile image
quantuumsnot

I highly doubt 100% Performance is real. I'm on 16c/32t cpu with 12 SSDs RAID 10 and my LOCALHOST tests always float around 95-97%, usually the "Largest Contentful Paint" is the culprit. This happens even when everything is loaded from RAM drive

Anyway the 100% at first 4 Lighthouse circles of hell is somewhat easily achievable without 3rd party libraries - vanilla HTML+CSS+JS. Last year me and a couple of coworkers did a small competition where the goal was to do that below 2 hours ... All of us hit it at around 1:10-15h with average site size 4-5 times smaller and logic error-free excluding some typos in the code. Our conclusion was that the coder will definitely waste more time in setting up the machine for the tests (installing and configuring OS + web-server + database) than coding a site with 100% Lighthouse score from the scratch

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

I know these scores don't mean much. But I've been told that recruiters sometimes check, and it kinda looks good to have a decent score.

Most of my other projects hover in the 90s and I'm okay with that. It's decent enough.

Collapse
 
maureento8888 profile image
Maureen T'O

Great portfolio and awesome on the 100% LH score! Your site is one of the best portfolio I’ve seen in terms of usability, responsive design, and overall layout. Love the process you went by in debugging and learning different tech/languages and figuring out what works best for you! 🙌🏼

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you so much! Yes, it took me a while to figure out all the kinks but I'm satisfied with the result and glad that so many devs from the community loved it!

Collapse
 
mazentouati profile image
Mazen Touati

Congratulations Paranav!
Nicely done, I digged the minimalistic approach and the attention to subtle details.

Despite what other mentioned here's what I think.

First, you shouldn't aim to have a perfect score. It does not always reflect a usuable website. I didn't do my homework yet but I bet that none of the most used and visited websites have a perfect score. Yet they are usable and performant.

My second point is related to first one which is having a dark mode only. You mentioned it as a powerful feature. It may be unpopular but dark mode it does not always improve the readability. Personally, it worsen dramatically my reading experience. I start to see all texts doubled. I was having this issue lately for months. I've discovered by chance that I can read better in white background. After, changing all my IDEs and OS hence the visited website to light mode I started to feel much better. So that could be considered an issue in term of accessibility and usability.

Lastly, in recent projects boxes the hover does not behave the same as in the previous section. I've tried with phone vut when I hold tap in the box the blue background does not fill the entire box.

Also consider using theme-color meta tag it would make it neater for phone users.

Keep the good work and never stop improving yourself. Good luck!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Really good suggestions. Thank you for all the feedback. I'll definitely look into adding a light theme, since many folks mentioned that.

I'll also look into the mobile experience of the website. Thanks again!

Collapse
 
trueneu profile image
Pavel Gurkov

Hm, modesty and humbleness!
"I am a software developer building beautiful interfaces and accessible applications."

The dark mode alone is painful to my eyes.

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Yeah, I'm thinking of adding a toggle button to switch the theme.

Collapse
 
aalphaindia profile image
Pawan Pawar

Good one!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you Pawan!

Collapse
 
jcubic profile image
Jakub T. Jankiewicz • Edited

Nice, but now go and check Mobile statistics instead of Desktop. It's not that impressive to have perfect score in Lighthouse in desktop mode.

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

It's still between 90-100 everywhere, so I'm not complaining tbh. 😅

I'm making changes as we speak, so I will make sure to test the mobile version too. Thanks for the reminder though!

Collapse
 
jcubic profile image
Jakub T. Jankiewicz

Yes it have very good stats. But also you checked only home page, and I think that most of the people that came to your website do this from Google and land on article page, that don't have that good statistics. Example your most liked article:
pranav-birajdar.vercel.app/blog/re...

Thread Thread
 
prnvbirajdar profile image
Pranav Birajdar

Yeah, that's true. I'll make sure to improve those numbers! Thanks.

Collapse
 
serhiicss profile image
serhii.css

Very nice website. Good design overall. I agree with others not to use black background. Maybe near black or other dark colors instead.

Keep up the good work!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you! Yeah, I'm probably gonna change the background color and add a light theme.

Collapse
 
andrewbaisden profile image
Andrew Baisden

Great job getting all of those green 💯

Collapse
 
nuculabs_dev profile image
Nucu Labs

This looks good, congrats!

Collapse
 
karthik371 profile image
Karthik371

Website is really cool .. BTW can you please tell me which all font did you use

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Font is Inter. I use this extension to check the font for any website!

chrome.google.com/webstore/detail/...

Collapse
 
karthik371 profile image
Karthik371

Thanks ☺️..... I was using mobile btw

Collapse
 
youpiwaza profile image
max

Pretty damn cool, I'd try that.

Collapse
 
condinoaljoseph profile image
elpmid

aljoseph.co/
Argggggghh so close...

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Hahahaha, I feel your pain. Your website looks super clean and elegant though! Big props.

Collapse
 
rfso profile image
Rafael S.

Clean and straight to the point, congratulations!

 
prnvbirajdar profile image
Pranav Birajdar

Thank you for the kind words and the detailed response Nate. Really appreciate it!! 🙏

Collapse
 
bobbyiliev profile image
Bobby Iliev

I've got 97% for my blog 😁

blog.bobby.sh/open-source-introduc...

image

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Good for you Bobby! Love it when you see some Green eh!!

Collapse
 
ra1nbow1 profile image
Matvey Romanov

Amazing!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you! 😊

Collapse
 
alonxx profile image
Alonso Diaz

I love it is simple, but beautiful, very good!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you! 😊

Collapse
 
braydoncoyer profile image
Braydon Coyer

I like the color scheme you have going on. Looks like Lee's website may have been an inspiration. Nicely done all-around!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thanks mate! And yes, I loved his website. It's very minimalistic and clean.

Collapse
 
pris_stratton profile image
pris stratton

It looks very nice. Loads quick. What more can you ask for!

Would you consider a light mode too?

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

I was kinda lazy but seeing that people are asking for an option, I might do that this weekend. 😅

Collapse
 
vygandas profile image
Vygandas Pliasas

Well, I'd say it's short in performance a bit 😁
Image description

Collapse
 
grenmath profile image
Mathieu Grenier

Nice!! How you deployed in your web host ?

Collapse
 
hirensakhiya profile image
Hiren Sakhiya

Good Start!

Collapse
 
prnvbirajdar profile image
Pranav Birajdar

Thank you! 🙏

Collapse
 
phiberber profile image
Philippe

lighthouse-dot-webdotdevsite.appsp...

Did you change something in the website?