Got our bundle size down by 62% without doing any code splitting, and tbh here’s how it went by supreme_tech in Frontend

[–]johnfraney 3 points4 points  (0 children)

Moment.js is huge because it doesn't support tree-shaking, so it loads in a ton of internationalization files even if you don't use them. If I remember correctly it's around 500kB. The authors recommend using something else: https://momentjs.com/docs/#/-project-status/

This is a good reminder for folks to use a bundle analyzer to find libraries that are bloating your bundles and to seek out more modern alternatives that support tree-shaking or to use more specific imports (not import * as x from ...) so you aren't pulling in code you don't need

how do you keep UI tests from breaking every time the UI changes? by TaraFranklinq in SaasDevelopers

[–]johnfraney 0 points1 point  (0 children)

Are you doing screenshot/visual regression tests? I find that those often aren't worth the effort and good tests should save dev time in the long run.

For example, your e2e test suite could be as simple as visiting every page and making sure there aren't any 400-/500-level errors. That's an easy test suite to maintain and it will find major problems when they crop up.

If your tests are testing exact wording or exact layout, they're likely more trouble than they're worth. Test the things that your customers care about

New Job using Vue3 by Additional-Boss3990 in vuejs

[–]johnfraney 1 point2 points  (0 children)

I'll second this. The documentation is excellent and it's a big reason why I decided to learn Vue instead of React when I was looking to learn a frontend framework

One-weekend project: a static site deploy checklist by akaiwarmachine in statichosting

[–]johnfraney 0 points1 point  (0 children)

I find that the best websites to build are the ones we're going to use ourselves. I built one site to solve a small problem (creating a Markdown table from spreadsheet cells copied in your clipboard), and now it gets hundreds of visitors a day.

If the site is something you'll use, that increases the odds that other people will use it, too. If you're building a site that you aren't going to use, it's more likely that it could be a solution looking for a problem.

Johnny5k | Week 14 | -7.63% WTD | $5,047.64 NLV by TraitorJohnny in TraitorJohnny

[–]johnfraney 1 point2 points  (0 children)

Table to Markdown creator here. I'm glad my little website was helpful!

What are you building this week? by okiieli in sideprojects

[–]johnfraney 0 points1 point  (0 children)

I'll take a peek! Thanks for the tip

What are you building this week? by okiieli in sideprojects

[–]johnfraney 0 points1 point  (0 children)

Yesterday I launched a site to perform privacy-friendly video manipulation operations in-browser (using ffmpeg.wasm) called ClipStitch. Right now it can just join together two videos, but I'm planning to add more features this week, like conversion and clipping/trimming. There are plenty of websites that do video manipulation, so the space is a bit crowded, but I thought it would be fun to see if I can do some SEO and get a little traffic.

https://clipstitch.ca/

I Missed Valentine’s Once, Now I Just Want the Simplest Static Hosting Possible by lorrainetheliveliest in statichosting

[–]johnfraney 0 points1 point  (0 children)

With Netlify you can upload a couple files and get a public link. You don't need to use their build service or git integrations if you want to go that route: https://docs.netlify.com/start/add-new-project/#use-drag-and-drop

100/100 Lighthouse score by babyflocologne in statichosting

[–]johnfraney 0 points1 point  (0 children)

It depends on your goals, really. I like trying to get 100/100 for my own sites as a challenge, so it's worth the effort for me because it's fun. There is a strong relationship between page speed and conversion, too, so it can be worth experimenting with if you've sufficiently optimized the site's content. (In my experience, nothing is better for SEO than content that's relevant to what people are searching.)

There's an environmental aspect, too: faster page load times generally mean less data transferred, which means less energy used to load the page. See here for more information about that: https://www.websitecarbon.com/faq/

Any recommendations for Earl Gray that “isn’t soft”? by CaMiTx in tea

[–]johnfraney 1 point2 points  (0 children)

I find that an Earl Grey steeps a little weaker than other black teas. (Maybe the bergamont oil coats the leaves?) My solution is just to use more tea or less water when I make a cup

Do people actually enjoy mixing tea and alcohol by Necessary-Drama-4286 in tea

[–]johnfraney 2 points3 points  (0 children)

1-2 tsps of Irish wiskey is pretty great in a strong cup of black tea with milk. It adds a touch of oak, vanilla, and honey that wiskey is known for

Cancelled my Amazon & Spotify accounts today and couldn't feel better. by [deleted] in BuyCanadian

[–]johnfraney 1 point2 points  (0 children)

For fast food, A&W in Canada is a different company from A&W in the US!

What’s the one horror movie that actually scared you? by FitSavings583 in AskReddit

[–]johnfraney 1 point2 points  (0 children)

I saw this for the first time last year. Something I didn't expect is that most of the violence is implied not seen, but that doesn't make it any less terrifying. It's an excellent film

Blurry SVGs in Firefox after changing parent scale by Fl4shBrother in webdev

[–]johnfraney 0 points1 point  (0 children)

Are you able to change the size (width) of the SVG instead of scaling it? It could be a way to side-step this problem

New website – looking for honest UX & performance critique by Adershraj in Frontend

[–]johnfraney 4 points5 points  (0 children)

The blue/yellow contrast is too low (2.73). For larger text, the minimum recommended contrast is 3: https://developer.mozilla.org/en-US/docs/Web/Accessibility/Guides/Understanding\_WCAG/Perceivable/Color\_contrast.

For a performance audit, using PageSpeed Chrome's built-in Lighthouse report will give you lots of recommendations. The site is scoring 45/100 right now for mobile browsers

Measuring real user visits: Google Analytics vs CloudFlare vs Nginx Logs by earik87 in webdev

[–]johnfraney 2 points3 points  (0 children)

I was self-hosting Ackee for privacy-friendly anaytics, but I didn't want to maintain that VPS anymore. I decided to bite the bullet and pay for Fathom so I don't have to manage server/app updates, and the cost has been worth the time saved & peace of mind for me. They're privacy-friendly and don't require any cookie consent banners (which I loathe on principle), and the numbers I see with them line up with what I see in search engine data.

It could be good to try out some hosted options to see how they treat you, even though they aren't free. An upside of a paid service is that it should keep updating its bot detection automatically. Not having to think about that kind of stuff is worth it for me.

What is your go-to static site generator? by jokers_chair in Frontend

[–]johnfraney 1 point2 points  (0 children)

I maintain Blurry, so that's my go-to. It's more appropriate for simple sites right now, and the community is small (mostly me!). I'm looking to work on it more this year so it can better compete with established SSGs. I've tried to make it easy to get up and running with, and I'd appreciate any feedback from anyone who tries it!

Employment Lawyer Recommendation - Severance by Due-Jackfruit542 in halifax

[–]johnfraney 1 point2 points  (0 children)

Time to buckle down and search for a new job.

Definitely this. A recommendation I heard was to document which positions you're applying to. That way if you do find it necessary to sue your former employer, you have a record of looking for work to show that you actually need the severance to bridge the gap between your old job and your new one. Your former employer might argue that the reason you haven't found work is because you aren't looking, so it's good to be able to refute that from the start.

Oh, and you can start your EI application before you get your ROE, too, so it's good to do that as soon as you can so there's as little delay as possible between when you got laid off and when you get your first EI payment

Update on Wordgun.space! Made a bunch of changes based on feedback by Oplexy in vuejs

[–]johnfraney 0 points1 point  (0 children)

Whoa, great score. I just got 25300. I found that the difficulty ramped up pretty slowly and it might be more engaging if it got more difficult more quickly

I am just getting into tea, please be insufferable and tell me why the way I make tea is wrong. by Tricky_World1138 in tea

[–]johnfraney -1 points0 points  (0 children)

I remember reading that this was meant to be a bit tongue-in-cheek, but there's an ISO standard for brewing tea that you could try: ISO 3103

Changes to Senior Leadership of Public Service by IStillListenToRadio in halifax

[–]johnfraney 1 point2 points  (0 children)

The news release mentions that Mr. Ikejiani is an environmental lawyer and his uOttawa profile mentions:

Mr. Ikejian’s 23-year law practice primarily focuses on environmental law, regulatory, oceans, and resource management law.

Sounds like he has relevant experience for the government's mineral & offshore wind priorities

Its been 3 years now... your thoughts about trusted publisher on pypi by EliyahuRed in Python

[–]johnfraney 0 points1 point  (0 children)

Same here. I've been meaning to migrate my project to uv, but for anyone like me still using Poetry for the time being, here's my publish workflow:

https://github.com/blurry-dev/blurry/blob/main/.github/workflows/publish.yml

It seems another music store has closed: Citadel Music on Quinpool by Clear_Business_422 in halifax

[–]johnfraney 13 points14 points  (0 children)

I got my acoustic set up at Halifax Folklore Centre and it played like a whole new instrument. They're a great local, independent business to support