Tech Note: Tightening the Systems

Charles Johnsonfollow me on twitter
Science • Sat Oct 11, 2008 at 5:56 pm PDT • Views: 237

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.

Advertisement

196 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Do not trust the shover robot.

TwitterFacebook
LGF Pages
Recent Pages

Channeling Confucius
Wherefore Art Thou ACLU? Only certain civil liberties need apply. - Charles C. W. Cooke - National Review Online
37 minutes ago
Views: 29 • Comments: 1
Tweets: 0 • Rating: 0

Channeling Confucius
6 Pop Culture Mysteries That Were Solved by Fans
42 minutes ago
Views: 32 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Trial opens 2 years after feds break up Christian militia
3 hours, 5 minutes ago
Views: 96 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Obama's budget headed to Congress
3 hours, 20 minutes ago
Views: 112 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Dreyfus and the Birth of Intellectual Protest
6 hours, 8 minutes ago
Views: 92 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Mitt's Spin
6 hours, 13 minutes ago
Views: 82 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Strategy
6 hours, 14 minutes ago
Views: 67 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Gender Wage Gap Skewed by Survey Flaws - Miller-McCune
6 hours, 15 minutes ago
Views: 73 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Why Obama Would Be Glad if the Culture War Is a Major Election Issue
6 hours, 15 minutes ago
Views: 96 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Is This the End of Wall Street as They Knew It?
6 hours, 15 minutes ago
Views: 83 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

You can tell what they think of our music by the places we are forced to play it in. This looks like a good spot for a livestock show. -- The Mothers of Invention were opening for Cream in April of 1968 in Chicago. The place was very large and did look like it had been used for displays of cattle and other such animals.