Better HN
topnewbestaskshowjobs
Log inSign up

mostlystatic

840 karma · joined Oct 18, 2012 (14y ago) · 248 submissions

Founder of debugbear.com.

Email: matt at mostlystatic.com

Submissions

comment 6y ago · link · parent

Oh interesting, I didn't know about stitching the streams together in the service worker!

Do you know what the advantage of that is over serving the full cached HTML page layout and then fetching the content HTML from inside the page?

comment 6y ago · link · parent

That's a good point, I didn't consider having the browser cache the document. That means you can achieve the same thing with the HTTP cache. (I'm not sure if the retention logic between the service worker cache and the HTTP cache differs much.)

Service workers give you more control about what's in the cache, for example you can serve a stale version of the HTML and then fetch an up-to-date version in the background. But since last year you can also use `Cache-Control: max-age=1234, stale-while-revalidate=86400`, so it should be possible with the HTTP cache as well now.

123.

Performant Front-End Architecture(debugbear.com ↗)

305 points · by mostlystatic · 6y ago · 114 comments

comment 6y ago · link · parent

I use https://bigtextbox.com/ a lot, as a nicer way to leave a note in the browser than doing a Google search.

comment 6y ago · link · parent

Cloud SQL has been down for me for 45 minutes now. The status page still doesn't say, but it says this in the Known Issues for technical support:

"We are experiencing an issue with Cloud SQL instances hosted in the us-east1 region, beginning at Saturday, 2019-12-07 10:00 US/Pacific. Symptoms: Some Cloud SQL instances hosted in this region are becoming unavailable, and are refusing connections. Self-diagnosis: Connections to the Cloud SQL instance are rejected. Workaround: None at this time Our engineering team continues to investigate the issue. We will provide an update by Saturday, 2019-12-07 12:04 US/Pacific with current details."

126.

Understanding My Google Cloud Bill(mattzeunert.com ↗)

2 points · by mostlystatic · 7y ago · discuss

127.

How does browser support impact JavaScript bundle size?(debugbear.com ↗)

2 points · by mostlystatic · 7y ago · discuss

128.

HMRC cancelled my VAT registration, and how it got reinstated(mattzeunert.com ↗)

1 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

Yep, I started copying my images to the EU and Asia regions and now it's fine cost-wise. They don't have an Australia region for the container registry though, so launching VMs there is still pricy for me.

comment 7y ago · link · parent

I recently started running more Google Cloud VMs in the UK instead of the US. It was costing me £2 a day to run the VMs, but somehow I also paid £12 a day for "GCP Storage egress between NA and EU”.

Turns out that by default Google's Docker container registry only stores the Docker images in the US. So each time I launched a VM the Docker image was downloaded from the US. I wrote more about it here: https://www.mattzeunert.com/2019/10/13/reducing-docker-image...

The billing interface didn't show that the Cloud Storage cost was related to the Docker images. I was investigating my normal Cloud Storage use, but it didn't explain why I was being charged so much. Only after a few days did I get the idea that it might be the Docker images that were causing it.

131.

Reducing Docker image size and cutting Google Cloud costs(mattzeunert.com ↗)

2 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

SEEKING FREELANCER | London, UK | Remote | Front-end developer

DebugBear is a website performance and quality monitoring tool for developers.

I'm a solo founder and looking for a freelancer who can write articles about web performance and build standalone marketing projects. If that works out you could also work on the main product.

I'm looking for:

- experience building front-end apps (frameworks/bundlers/...)

- experience researching and writing technical articles

- 5-20h of availability a week

Check out these links for the kind of project you might work on: https://www.debugbear.com/blog/measuring-react-app-performan... https://www.debugbear.com/blog/chat-widget-site-performance https://www.debugbear.com/json-size-analyzer

If you're interested, send me an email: matt/at/debugbear.com

133.

Tips on getting feedback from early users(mattzeunert.com ↗)

2 points · by mostlystatic · 7y ago · discuss

134.

Obligatory Forum Comments(mattzeunert.com ↗)

1 points · by mostlystatic · 7y ago · discuss

135.

How do different chat widgets impact site performance?(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

136.

Show HN: A website monitoring tool for front-end developers(debugbear.com ↗)

7 points · by mostlystatic · 7y ago · discuss

137.

Measuring the performance of your React app(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

> But everyone mostly pays a flat rate for using the whole system each week (within the zones they travel to at least).

I was wondering how widespread travel cards are, since I never bought one personally. If you don't travel much on the weekends you end up paying more.

In 2017 TfL sold weekly, monthly, and annual travel cards covering year-round flat-rate travel for ~0.8m people. Travel card journeys account for about 39% of all journeys.

Maybe it was more common in the past, since travel card journeys dropped around 10% a year from 2015-2017.

https://tfl.gov.uk/corporate/transparency/freedom-of-informa...

139.

Measuring the performance impact of Chrome extensions(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

140.

Website Builder Performance Comparison(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

Fares 6 weeks in advance seem to be around £50, starting from £30 for a slower train.

142.

Understanding Network Throttling: DevTools vs. Lighthouse vs. Netem(debugbear.com ↗)

2 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

You don't know what future funding rounds there'll be. Maybe you raise a seed investment and then decide to sell the company two years later. Maybe you'll raise 5 more rounds and IPO.

Also, if you sell your own shares the money goes to you, not the company. I guess you could then loan the money to the company, but you'd still be liable for tax.

Going from owning 1% of a 1M company to owning 0.5% of a 2M company isn't unfair. The extra value comes directly from the new shareholders investing their money.

Employees believing their ownership percentage will not change is a problem though, and founders should not suggest that to be the case.

144.

Ask HN: How to ask free trial users to convert once features are implemented?

3 points · by mostlystatic · 7y ago · 2 comments

comment 7y ago · link · parent

You might want to make the Premium price a bit more prominent, took me a while to find it.

comment 7y ago · link · parent

Looks cool! Small UX note: I initially tried to enter a URL to go somewhere, but nothing happened when I pressed enter. Then I saw the "No open tabs" message, but it still took me some time to find the little button with the "+" sign.

147.

Bundle splitting components with Webpack and React(debugbear.com ↗)

1 points · by mostlystatic · 7y ago · discuss

comment 7y ago · link · parent

I've not considered using IndexedDB before! Loading a large app generates several GB of data, and extracting that data from the tab is actually a big performance issue.

Instrumenting a single bundle is possible, but it's common to have some dependency on third-party JS or script tags in the page HTML.

Chrome has an experimental request interception API for extensions that allows rewriting the response. I think that would be ideal UX-wise.

I'm a bit wary though because that's how I started initially and I ran into a bunch of problems. One issue is running out of memory, the Babel compilation can often take several GB of RAM, and the default V8 memory limit in Chrome is too low.

comment 7y ago · link · parent

I'm still trying to figure that out :)

Here are some ideas:

• Debugging: figuring out why a variable or object property has an unexpected value

• Finding relevant code, possibly during onboarding of new devs

• Security: see where insecure values end up at runtime

• Telling BE devs what endpoint is used for a specific part of the UI

The architecture could also enable a few other features, like pausing when a particular value is encountered anywhere in the code.

comment 7y ago · link · parent

Thanks, just fixed it.
1
456
9