The Insider News
The Insider News is for breaking IT and Software development news. Post your news, your alerts and
your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be
removed. If you wish to ask a programming question please post it
here.
Get The Daily Insider direct to your mailbox every day. Subscribe
now!
|
|
 |
|

|
Are graphic designers ruining the web? (source: .net magazine) First it was IE, then WebKit. Now they're coming after you.
"Sites are becoming more attractive and, in some cases, more user-friendly, but at a cost: page weight and complexity. Developers and designers debate who's to blame."
|
|
|
|

|
Couldn't agree more. there has to be a balance between logic and design and it seems things are shifting towards design.
|
|
|
|

|
The increase in bloat is mainly coming from javascript, not graphics
|
|
|
|

|
ed welch wrote: mainly coming from javascript
Not true, most js frameworks are small and compressed.
"I do not know with what weapons World War 3 will be fought, but World War 4 will be fought with sticks and stones." Einstein
"Few things are harder to put up with than the annoyance of a good example." Mark Twain
|
|
|
|

|
Yes, it is true. Take Reuters.com for instance: total javascript = 414 KB total image = 264 KB
|
|
|
|

|
Is their javascript transmitted uncompressed?? 414k gzipped is probably ~80k over the wire, so somewhat smaller than the images. Still a lot though.
-- Ian
|
|
|
|

|
Not to mention the majority of JavaScript can be downloaded once and used on multiple pages.
|
|
|
|

|
AspDotNetDev wrote:
Not to mention the majority of JavaScript can be downloaded once and used on multiple pages.
Maybe jquery, but not the rest. Um, you could even look at the page I mention and see for yourself, rather than making false assumptions. Look at http://www.webpagetest.org/[^]
while your at it and see how having dozens of javascripts slows down the page loading
|
|
|
|

|
I just looked at the page using the FireBug Net panel. I sorted the JavaScript from largest to smallest. Here are the largest JavaScript files:
- Facebook Widgets
- jQuery
- Twitter Widget
- Google Analytics
- yahoo-dom-event.js
Those are all third-party reusable libraries, and they are the bulk of the JavaScript. The majority of the other files appear to either be for reusable widgets (e.g., ticker, navigation, stocks) or mini libraries (e.g., geolocation, connection, cookie handling, animation, events, dom manipulation) that can be shared across pages.
Yes, I did make assumptions, but yes, they were correct.
By the way, merely having that many JavaScript files can slow down page load time, regardless of their file size, as browsers tend to download JavaScript files before downloading other files, and the latency alone increases the download time (browsers usually only allow about 5 concurrent downloads from a single domain). The solution to this is to host JavaScript files on a CDN with multiple domains to download from. This reduces the latency and allows the browser to download many of the JavaScript files simultaneously.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin