Tech Note: Tightening the Systems

Science • Views: 1,682

Behind the scenes, the LGF Blog Engine code is being radically reworked, especially in pages with comments. By optimizing the HTML/Javascript/CSS design, we’ve managed to reduce the size (defined as the amount of HTML code it takes to render the comment in your browser) of each individual comment by about half.

Half, I say. Half.

This is a very good thing, because until we implement Ajax pagination of comments (on the drawing board), reducing the size of each comment is the best way to reduce the size of the entire page. In a page with a thousand comments, saving 10 bytes per comment results in a 10K savings on the size of the page. (And these changes have saved a lot more than 10 bytes per comment.)

Most of the trimming took place in the various elements that make up the top line of each comment, what Stinky and I call the “meta” line; the line that contains the icon and name of the user who posted it, the time and date, and all those little icons for rating, favoriting, reporting, etc. There was a lot of duplicated functionality in that meta line, and it’s all stripped down now.

The meta line is the only remaining table in our main templates, because a table still gives the best display results in all browsers and resolutions. But this table is about as optimized and CSS-ized as we can make it.

The usual web monkey advice applies: if something exhibits odd behavior or refuses to work entirely, clear your browser cache and refresh the page.

As always with these tech threads, big ups to the grooviest Javascript library in the known world, jQuery, without which this would be immeasurably more painful.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
Trump’s “Stolen Election” Lie Based on Evidence From Pervy Bathroom Cam-Spy OK, this really takes the cake. If you have relatives that still cling to the “election was stolen, dadgum, I jes’ KNOW IT … This should be a slight remedy to the stubborn madness Thanks to online anonymity, the ...
Khal Wimpo (free internal organs upon request!)
Yesterday
Views: 53 • Comments: 0 • Rating: 0
Best of April 2024 Nothing new here but these are a look back at the a few good images from the past month. Despite the weather, I was quite pleased with several of them. These were taken with older lenses (made from the ...
William Lewis
2 days ago
Views: 167 • Comments: 2 • Rating: 5
Texas County at Center of Border Fight Is Overwhelmed by Migrant Deaths EAGLE PASS, Tex. - The undertaker lighted a cigarette and held it between his latex-gloved fingers as he stood over the bloated body bag lying in the bed of his battered pickup truck. The woman had been fished out ...
Cheechako
3 weeks ago
Views: 410 • Comments: 0 • Rating: 1