Options

Question about page size

scwalterscwalter Registered Users Posts: 417 Major grins
edited July 1, 2007 in SmugMug Support
Mike, your comments about optimization got me thinking about the size of my homepage, so I ran the "web page speed report" thing from the Web Developer Toolbar and was surprised to see over 300kB of javascript, most of which is from smugmug.

This seems awfully bloated to me. What exactly am I getting for my 215kB of yui_core? Any comments?

-Scott

Page Objects
QTY SIZE# TYPE URL
1 215410 SCRIPT js.smugmug.com/include/js/yui_core-min-20070608001444.js
1 61057 SCRIPT js.smugmug.com/include/js/smugmug_core-min-20070625105723.js
1 49943 CSS css.smugmug.com/include/css/smugmugBlack-20070621223257.css
1 30110 SCRIPT js.smugmug.com/include/js/user_scwalter-20070628195905.js
1 6906 SCRIPT scwalter.smugmug.com/include/js/homepage_ajax-20070427070019.js
1 6534 CSS scwalter.smugmug.com/include/js/yui/menu/assets/menu.css
1 6232 SCRIPT www.google-analytics.com/urchin.js
1 5592 CSS css.smugmug.com/include/css/user_scwalter-20070628195905.css
1 4895 HTML scwalter.smugmug.com/
1 4299 IMG scwalter.smugmug.com/photos/159706906-Ti-1.jpg
1 4168 IMG scwalter.smugmug.com/img/throbberBlack.gif
1 3840 CSS scwalter.smugmug.com/include/js/yui/container/assets/container.css
1 3474 IMG scwalter.smugmug.com/photos/166389849-Ti-1.jpg
1 3358 IMG scwalter.smugmug.com/photos/156568536-Ti-1.jpg
1 3327 SCRIPT secure.statcounter.com/counter/counter_xhtml.js
1 1994 CSS scwalter.smugmug.com/include/js/yui/tabview/assets/tabview.css
1 971 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/alrt16_1.gif
1 928 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/hlp16_1.gif
1 788 CSS scwalter.smugmug.com/include/js/yui/fonts/fonts.css
1 601 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/info16_1.gif
1 591 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/blck16_1.gif
1 580 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/warn16_1.gif
1 552 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/tip16_1.gif
7 264 CSS IMG scwalter.smugmug.com/include/js/yui/menu/assets/map.gif
1 214 CSS scwalter.smugmug.com/include/css/yui_core.css
1 85 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/close12_1.gif
1 49 IMG 12.statcounter.com/counter.php?sc_project=1665962&java=0&security=d17dff2e&invisible=1
8 43 IMG scwalter.smugmug.com/img/spacer.gif
28 ^ 416805* Total (^unique objects)
Scott Walter Photography
scwalter.smugmug.com

Comments

  • Options
    Mike LaneMike Lane Registered Users Posts: 7,106 Major grins
    edited July 1, 2007
    scwalter wrote:
    Mike, your comments about optimization got me thinking about the size of my homepage, so I ran the "web page speed report" thing from the Web Developer Toolbar and was surprised to see over 300kB of javascript, most of which is from smugmug.

    This seems awfully bloated to me. What exactly am I getting for my 215kB of yui_core? Any comments?

    -Scott

    Page Objects
    QTY SIZE# TYPE URL
    1 215410 SCRIPT js.smugmug.com/include/js/yui_core-min-20070608001444.js
    1 61057 SCRIPT js.smugmug.com/include/js/smugmug_core-min-20070625105723.js
    1 49943 CSS css.smugmug.com/include/css/smugmugBlack-20070621223257.css
    1 30110 SCRIPT js.smugmug.com/include/js/user_scwalter-20070628195905.js
    1 6906 SCRIPT scwalter.smugmug.com/include/js/homepage_ajax-20070427070019.js
    1 6534 CSS scwalter.smugmug.com/include/js/yui/menu/assets/menu.css
    1 6232 SCRIPT www.google-analytics.com/urchin.js
    1 5592 CSS css.smugmug.com/include/css/user_scwalter-20070628195905.css
    1 4895 HTML scwalter.smugmug.com/
    1 4299 IMG scwalter.smugmug.com/photos/159706906-Ti-1.jpg
    1 4168 IMG scwalter.smugmug.com/img/throbberBlack.gif
    1 3840 CSS scwalter.smugmug.com/include/js/yui/container/assets/container.css
    1 3474 IMG scwalter.smugmug.com/photos/166389849-Ti-1.jpg
    1 3358 IMG scwalter.smugmug.com/photos/156568536-Ti-1.jpg
    1 3327 SCRIPT secure.statcounter.com/counter/counter_xhtml.js
    1 1994 CSS scwalter.smugmug.com/include/js/yui/tabview/assets/tabview.css
    1 971 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/alrt16_1.gif
    1 928 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/hlp16_1.gif
    1 788 CSS scwalter.smugmug.com/include/js/yui/fonts/fonts.css
    1 601 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/info16_1.gif
    1 591 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/blck16_1.gif
    1 580 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/warn16_1.gif
    1 552 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/tip16_1.gif
    7 264 CSS IMG scwalter.smugmug.com/include/js/yui/menu/assets/map.gif
    1 214 CSS scwalter.smugmug.com/include/css/yui_core.css
    1 85 CSS IMG scwalter.smugmug.com/include/js/yui/container/assets/close12_1.gif
    1 49 IMG 12.statcounter.com/counter.php?sc_project=1665962&java=0&security=d17dff2e&invisible=1
    8 43 IMG scwalter.smugmug.com/img/spacer.gif
    28 ^ 416805* Total (^unique objects)
    Hey I moved your post to its own thread since it really didn't belong where it was. The yui-core files are all your ajaxy goodness and things like the slide out animations and such. Also I believe there are things like selecting classes.

    It's all kinds of goodness. Check out the yui pages for more. And I promise that Don and the sorcerers are keenly aware of page sizes and load times so they won't put anything in your page that isn't there for good reason.

    But if you'd like I'll definitely get someone with a bigger brain than mine to chime in on this. thumb.gif
    Y'all don't want to hear me, you just want to dance.

    http://photos.mikelanestudios.com/
  • Options
    scwalterscwalter Registered Users Posts: 417 Major grins
    edited July 1, 2007
    Thanks for moving it and thanks for your answer. I figured it was some of that Ajax goodness.

    And since the file is referenced to js.smugmug.com and not each user's page, I guess most browsers will cache it, so once you've visited any single smugmug site, it's there already and is not reloaded.

    For reference, I checked out a few sample galleries on other photo sites (zenfolio and phanfare) and they were about the same size.

    Thanks,
    Scott
    Scott Walter Photography
    scwalter.smugmug.com
  • Options
    jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited July 1, 2007
    scwalter wrote:
    This seems awfully bloated to me. What exactly am I getting for my 215kB of yui_core? Any comments?

    One thing to keep in mind is that this 215kb is downloaded the first time a visitor sees any Smugmug user's home page, but a high percentage of the code is in included files that are very efficiently cached by the browser so they are not downloaded if you then go to other pages in your site. So, for the most part, this is a one-time download upon first visit and the size penalty is not felt on subsequent pages.
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
Sign In or Register to comment.