Recently, during an accessibility assessment, I discovered a new factor to consider: page weight. Page Weight should not be a new concept to any web designer. Ever since the days of dial-up dominance, we have been scrutinizing every paragraph, abusing calculators to determine the most appropriate image collection, mapping the dimension and location of every new icon and rollover in our sprite, clocking speed tests and ripping out every non-essential bit of white-space we could find. I admit that I have become a little lax, allowing more and larger images on my page for the sake of design, all the while whispering silent apologies to the dial-up community.
During the aforementioned assessment, we paid special attention to one set of pages in particular. Our project, the public-facing site of a university, has a section outlining each of the degree programs. The challenge the client faced is one that many education websites face: how to appropriately define a program and all its structural elements, without destroying the visitor’s sense of connection to the program itself. The client’s decision was to provide all the program details on one page, rather than just linking from the program page to course description pages. Program details include the course subject, required course list, course descriptions and, in some cases, subject description. For a full program page, we discovered the amount of information could be….daunting. With nine or ten requirement categories and as many as fourteen course requirements per category, we were looking at a number of pages with an HTML weight of 130 kb. Once the images were added in, we were well above 200 kb in page weight which could take up to 30 seconds to load on a 56 Kbps modem.
As it turns out, the page weight is a necessary evil for this particular page. We had two options, in order to maintain an accessible data set: put all the information on one page or link to it all from one page. All the data on one page makes the navigation of the program easier for the site visitor, but overloads the ideal weight. Linking from the program page to each course would have delivered a light page but would have forced a lot of usage of the back button.
So what is the ideal solution? For this client, the massive page was the preferred solution.
Alternatively, we could have used a bit of JQuery magic to deliver a lightweight page, with links to additional content, that was also slick and usable. I cover the details of this option in an upcoming post Jason vs. Anchor Tags – Getting Results with the PreventDefault method but the idea is this:
A few things to note -
- Since we would be relying on the anchor’s class when attaching click events, we can flag any anchor to be skipped just by adding another name to a compound class of the anchor OR omitting a target class name.
Photo by tookapic from Pexels