News for hackers. Stuff that matters.
Re:The average size of Web pages is now the average size of ... by K0nserv on Friday April 22, 2016 @09:58AM (#11549207)
Quite happy with my own web page/blog. Pages hover at around 10kb, 30kb if I include some images. I think the page size can be attributed a lot to there being no JS except for GA.

I have taken a lot of inspiration from http://motherfuckingwebsite.com/ and http://bettermotherfuckingwebsite.com/

Of course the size will differ depending on the site's purpose, but I feel like most web pages could stand to loose a lot of weight.

EDIT: I have a guide to setup a similar blog/site here[0]

0: https://hugotunius.se/2016/01/10/the-one-cent-blog.html

Re:The average size of Web pages is now the average size of ... by nickpsecurity on Friday April 22, 2016 @11:14AM (#11549787)
That loaded SOOO fast on mobile with no delays or scrolling problems. Great job!

Note: Might try it with NoScript later. Always a good indicator of... something...

Re:The average size of Web pages is now the average size of ... by K0nserv on Friday April 22, 2016 @11:17AM (#11549808)
Fun story about NoScript. I used to use AMP[0]. But I reverted that for two reasons.

1. The size of their js is ~170kb roughly 17 times larger than most of my pages.

2. It loads from a 3d party domain which means that NoScript/uBlock Origin users will see a blank white page.

The project does impose some constraints that will help reduce page weight and increase page speed, but for my page sizes it's ridiculous to use their JS.

0: https://www.ampproject.org/

Re:The average size of Web pages is now the average size of ... by nickpsecurity on Friday April 22, 2016 @12:41PM (#11550435)
The site certainly loaded fast. Never heard of them before. Thanks for the link.
Re:The average size of Web pages is now the average size of ... by SquareWheel on Friday April 22, 2016 @08:36PM (#11553517)
>1. The size of their js is ~170kb roughly 17 times larger than most of my pages.

Presumably this would be heavily cached or baked into the browser, though -- assuming AMP takes off.

Re:The average size of Web pages is now the average size of ... by gradi3nt on Friday April 22, 2016 @10:46AM (#11549574)
"You're a fucking moron if you use default browser styles." - Eleanor Roosevelt
Re:The average size of Web pages is now the average size of ... by chriswarbo on Friday April 22, 2016 @12:31PM (#11550362)
I find it hard to take advice from anyone who makes such strong claims, in such a provocative manner, whilst failing so utterly in their own demonstration: https://imagebin.ca/v/2eeSxQABPMX9

Apparently that's "legible" and "looks the same in all... browsers".

I certainly agree that BMFW has less contrast than the MFW; so little that it's difficult to read!

For comparison, here's how MFW looks: https://imagebin.ca/v/2eeVa5QksF6e

White text on a black background, exactly as I asked for when I configured Firefox. Content taking up my whole widescreen monitor, exactly as I asked for when I made the Firefox window that size.

The only thing BMFW seems to have correct is using sans-serif font; which I expect is because I unticked Firefox's "allow pages to override these fonts" option. Other than that, it looks like a me-too cargo-cult of MFW which completely misses the point.

Presumably the creators of BMFW are using, and only ever test anything with, a black-on-white style which is, let me guess, the browser's default? What would that make them, in their own (jokingly "quoted") words?

Re:The average size of Web pages is now the average size of ... by Retr0spectrum on Friday April 22, 2016 @02:02PM (#11551113)
I'm a fan of white-on-black too, but whatever setting/addon you are using to acheive that effect seems to be very broken. It's unfair to blame BMFW for a problem created by, and unique to, your specific configuration.
Re:The average size of Web pages is now the average size of ... by recursive on Friday April 22, 2016 @02:07PM (#11551166)
The setting isn't broken. It's not an add-on. It's BMFW's fault, and it's fair to blame it for this. BMFW sets a foreground color, and does not set a background color.

Here are the settings in stock Firefox. http://imgur.com/h4SmKYs

Re:The average size of Web pages is now the average size of ... by K0nserv on Friday April 22, 2016 @02:14PM (#11551246)
The author even addresses the fact that they didn't set the background on the site.

"I would've even made this site's background a nice #EEEEEE if I wasn't so focused on keeping declarations to a lean 7 fucking lines."

Also the whole site is satire which you seemed to have missed

Re:The average size of Web pages is now the average size of ... by chriswarbo on Friday April 22, 2016 @08:13PM (#11553445)
> The author even addresses the fact that they didn't set the background on the site.

So? JS template engines allow server-side rendering, to address the fact their pages are slow, and unusable without JS. JS libraries have polyfills, to address browsers implementing older JS versions. Drupal allows Varnish, to address how slow its rendering is. SVG graphics libraries have canvas fallbacks to address IE. Video players have MP4 and Webm versions to address fragmented codec support. And so on.

Does these things make the MFW argument wrong or moot? No, because a) they involve extra work to solve problems that wouldn't exist if people just made a motherfucking website, and b) because many devs don't even bother to implement these fixes even when they exist: case in point, BMFW's authors wrote about setting the background but didn't bother actually doing it, so their site is broken.

> Also the whole site is satire which you seemed to have missed

I get that it's "haha only serious", but it's self-defeating. If the premise were "I built a Web-scale Uber-for-toilets with isomorphic React" and the text were unreadable, that would add to the charm. If the premise were "Stop breaking your sites with junk" (which is the message of MFW) and the text were unreadable, that would be unfortunate and a bit ironic. Yet BMFW's premise is "MFW is right, but there's no excuse to leave out these things", and those things break sites. The site itself is a demonstration of why the only point it makes is wrong. It's funny, but in a "laughing at" rather than a "laughing with" kind of way.

Re:The average size of Web pages is now the average size of ... by kirubakaran on Friday April 22, 2016 @05:33PM (#11552695)
> the whole site is satire which you seemed to have missed

You seem to have missed it too :-)

> I have taken a lot of inspiration from … http://bettermotherfuckingwebsite.com/

Re:The average size of Web pages is now the average size of ... by snowwrestler on Friday April 22, 2016 @06:00PM (#11552828)
I don't get the point of those settings. You seem to prefer white-on-black text, but the "Only with High Contrast themes" override means that it will almost never apply.

I tried setting this in my Firefox and visited a bunch of sites. None of them showed me white text on black background, because almost every site sets both background and foreground color styles, which override the preference setting. In fact the only site that was affected was the BMFW.

So what is the point of that setting? If you actually prefer white on black, set it to "Always" and you'll always get it--even on the BMFW.

Re:The average size of Web pages is now the average size of ... by chriswarbo on Friday April 22, 2016 @07:33PM (#11553289)
> I don't get the point of those settings. You seem to prefer white-on-black text, but the "Only with High Contrast themes" override means that it will almost never apply.

The idea of defaults is to be default. I don't mind sites specifying the use of particular colours, and it's useful e.g. for syntax highlighting, for text above background images, for transparent images assuming a particular background colour (e.g. pre-rendered LaTeX images, like those on Wikipedia), etc.

The problem is setting either the foreground or the background, but not both.

> I tried setting this in my Firefox and visited a bunch of sites. None of them showed me white text on black background, because almost every site sets both background and foreground color styles, which override the preference setting. In fact the only site that was affected was the BMFW.

If only that were true. Many sites set either just the foreground colour, assuming the background will be white; or just the background, assuming the foreground will be black. I've emailed many sites about this over the years, ended up opening countless others in a separate browser with different settings, and just rage-quitted many more.

Last week I emailed ticketmaster.es about the black-on-black text in their registration form (amongst many other issues; their service is terrible, I recommend avoiding them if possible)

This is also the reason I stopped using Yahoo Mail back in 2007 when they switched off access to their old Web UI (with no option to use IMAP or POP without paying) http://2.bp.blogspot.com/_6BhjMzysLTs/Rg1mh0pLjMI/AAAAAAAAAA...

I've even tried fixing pages with custom Javascript http://chriswarbo.net/blog/2015-10-01-web_colours.html with mixed success. I also have a key bound to `xcalib -invert -alter` so I can quickly invert my screen colours.

The MFW concludes with the following:

> What I'm saying is that all the problems we have with websites are ones we create ourselves. Websites aren't broken by default, they are functional, high-performing, and accessible. You break them. You son-of-a-bitch.

In their attempts to be "better", BMFW's authors broke it. Sure, it can be argued that light-on-dark default colours are an edge case; that the authors say they were "going to" add a background colour but didn't; etc. and those are all perfectly reasonable arguments. But those are exactly the arguments MFW and BMFW are disagreeing with, only with "light-on-dark default colours" instead of "disabled Javascript" or "out-of-date Android browser" or "retina display", etc.; or with "background colour" instead of "server-side rendering", "error handler", "CDN", etc.

Re:The average size of Web pages is now the average size of ... by snowwrestler on Friday April 22, 2016 @11:16PM (#11553980)
So basically you reversed the defaults in order to make it easier to find sites with partial style declarations, so you can yell at them.

Seems like a big waste of time to me.

Re:The average size of Web pages is now the average size of ... by chriswarbo on Saturday April 23, 2016 @10:39AM (#11555678)
> So basically you reversed the defaults in order to make it easier to find sites with partial style declarations, so you can yell at them.

Nope, it's only the especially egregious that get yelled at. In the case of ticketmaster.es, their purchase form looks like this with the default black-on-white colour settings https://imagebin.ca/v/2ekv8S6pbKls

It looks like they're forcing the foreground colour of native text input fields to be black, and the background of native drop-down lists to be white. I refuse to change my entire GTK+ theme (and hence, every application I use on a machine which I spend the majority of every day staring at) to an eye-straining black-on-white colour scheme just to make up for some Web devs going out of their way to break their own sites.

Plus, in the case of ticketmaster, their form handler mangled my input; their "change details" form didn't work; they provide no contact details other than accounts on social media sites which require signing up to; their entire "help" section is an "ask us a question" form which displays all submissions publically; and so on. Besides, it's not "yelling", it's bug reporting; they're free to ignore it.

Re:The average size of Web pages is now the average size of ... by recursive on Saturday April 23, 2016 @01:48AM (#11554321)
It's not for everyone.
Re:The average size of Web pages is now the average size of ... by snowwrestler on Friday April 22, 2016 @01:46PM (#11550967)
"I messed up my browser's settings, and now I'm upset that my browser looks messed up."
Re:The average size of Web pages is now the average size of ... by recursive on Friday April 22, 2016 @02:03PM (#11551130)
> "I messed up my browser's settings" ...

Wrong. I changed my browser's settings to perfectly reasonable values. White text on a black background. Now I'm reasonably upset because my browser looks messed up.

Re:The average size of Web pages is now the average size of ... by gonzo41 on Friday April 22, 2016 @10:08AM (#11549287)
Plus one for you. It used to be the internet was a book, now it's a movie.
Re:The average size of Web pages is now the average size of ... by gkya on Friday April 22, 2016 @02:08PM (#11551179)
I think the case of WWW and Internet is one of the biggest collective misunderstandings and tragic fails in the history of technology (and maybe humanity). If there would be a study of average ratio of information in kilobytes to page size in kilobytes, the result would make us cry. I have a Notes.org file that holds most of my notes, a list of most movies I watched and I'll watch, most books I read and I'll read, most places I saw and I'll see... basically my life and its about 200kb, where most probably more nearly 100% of it is information, whereas most multi-meg webpages have two paragraphs worth of information on them.
Re:The average size of Web pages is now the average size of ... by alasano on Friday April 22, 2016 @10:17AM (#11549359)
http://i.imgur.com/wB5B35g.png

My user experience was great, I have to agree.

Re:The average size of Web pages is now the average size of ... by jswny on Friday April 22, 2016 @11:01AM (#11549686)
Great writeup! I might try this out later and see how it fairs. I haven't used the Jekyll + GitHub combo yet but I have heard great things.
Re:The average size of Web pages is now the average size of ... by K0nserv on Friday April 22, 2016 @11:09AM (#11549739)
Thanks, glad you liked it :) If you do give it a try and run into problems tweet me at @k0nserv.
Re:The average size of Web pages is now the average size of ... by BafS on Friday April 22, 2016 @08:32PM (#11553499)
I have begun a 1 ko framework based on this website, if anyone is interested, I just pushed the code right now https://github.com/BafS/mu
Re:The average size of Web pages is now the average size of ... by niutech on Monday April 25, 2016 @12:56PM (#11565552)
There has long been http://www.1kbgrid.com
Re:The average size of Web pages is now the average size of ... by Malcx on Friday April 22, 2016 @01:01PM (#11550621)