Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
benjaminbenben
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
Using PhantomJS WebServer
(benjaminbenben.com)
2 points
by
benjaminbenben
13y ago
|
0 comments
32.
▲
by
benjaminbenben
13y ago
I didn't. That's fantastic - exactly what I needed; added it and gone back down to 2 dynos.
33.
▲
by
benjaminbenben
13y ago
I went to 5 and was still seeing a lot of errors, so upped it to 10.
34.
▲
by
benjaminbenben
13y ago
That's the minus sign on the bottom right - it's for zooming the css list so that it's all in view (it was originally built to see if appended styles were more specific on a page).
35.
▲
by
benjaminbenben
13y ago
yup, it's just overloaded at the moment. It's serverside using phantomjs - I'm running it through cloudfront so the common urls are cached there.
36.
▲
by
benjaminbenben
13y ago
thanks. Yeah - it's not as useful as something like css profiler, I built it to work out if there were ways that I could architect my css in a more efficient way.. Though it looked cool, so I threw it online!
37.
▲
by
benjaminbenben
13y ago
yeah - there were issues in FF dealing with large data-url embedded images in a json file. I'm looking into it though.
38.
▲
by
benjaminbenben
13y ago
document.stylesheets - https://developer.mozilla.org/en-US/docs/Web/API/document.st... The main part of the injected code is https://gist.github.com/benfoxall/5647039 - there's a bit of hacking round cors issues there too.
39.
▲
by
benjaminbenben
13y ago
Yup - It's been falling over quite a lot in the last couple of hours! It is all served through cloudfront so that the popular urls get cached (which is why I added the example links - so they would hit the cache). I've just thrown a whole
40.
▲
by
benjaminbenben
13y ago
Good point, another approach could be to use a templating system where the ui is bound to a js object like knockout.js or angular.js.
41.
▲
by
benjaminbenben
13y ago
Ah, cheers - yeah, it serialises the image as a data-uri in the json which seems to be erroring in FF. Need to find a better way of doing that.
42.
▲
HN uses 10 of 31 CSS Rules
(css.benjaminbenben.com)
3 points
by
benjaminbenben
13y ago
|
0 comments
43.
▲
Visualising CSS matches
(css.benjaminbenben.com)
1 points
by
benjaminbenben
13y ago
|
2 comments