Slow loading site: CI or bad coding? |
[eluser]Derek Allard[/eluser]
Generally good... occasionally bad. If your server isn't generating a blank page, and your visitors are using modern browsers... probably good.
[eluser]Michael Wales[/eluser]
I am curious as to why it was requesting the CSS files for all of your controllers. If you have a CSS for a profile controller - and you aren't on the profile page (say you are on search) - why load it? Unless it of course, includes style definitions you need. 29 css files loaded is ridiculous. It's not bad for organization, but you should still be only loading a small number of those on each request.
[eluser]codex[/eluser]
[quote author="walesmd" date="1193263068"]I am curious as to why it was requesting the CSS files for all of your controllers. If you have a CSS for a profile controller - and you aren't on the profile page (say you are on search) - why load it? Unless it of course, includes style definitions you need. 29 css files loaded is ridiculous. It's not bad for organization, but you should still be only loading a small number of those on each request.[/quote] You're right. And it's the last time I've done it like this ![]()
[eluser]mipa[/eluser]
I'd like to add a few resources I've found in the last few months related to front-end performance: 1. Steve Souders' site: http://stevesouders.com/examples/rules.php 2. Cal Henderson article about improving performance: http://www.thinkvitamin.com/features/web...cript-fast 3. The Yahoo Firebug plugin, YSlow: http://developer.yahoo.com/yslow/ 4. YUI Compressor (CSS and JS compressor [not obfuscator] written in Java): http://www.julienlecomte.net/yuicompressor/
[eluser]codex[/eluser]
[quote author="mipa" date="1193299806"]I'd like to add a few resources I've found in the last few months related to front-end performance: 1. Steve Souders' site: http://stevesouders.com/examples/rules.php 2. Cal Henderson article about improving performance: http://www.thinkvitamin.com/features/web...cript-fast 3. The Yahoo Firebug plugin, YSlow: http://developer.yahoo.com/yslow/ 4. YUI Compressor (CSS and JS compressor [not obfuscator] written in Java): http://www.julienlecomte.net/yuicompressor/[/quote] Thanks! Good read.
[eluser]thurting[/eluser]
you might want to look into using Amazon S3 to serve assets. it will limit the requests coming into your server and provide fast, reliable, and scalable delivery.
[eluser]ELRafael[/eluser]
just one little thing if i try to login without username and pass, the validation shows me an error user_username is required. user_passowrd is required. Try to put Code: $fields['user_username'] = 'username'; Will be more elegant (sorry, i don't remmember if is the right word in english)
[eluser]codex[/eluser]
[quote author="ELRafael" date="1193357994"]just one little thing if i try to login without username and pass, the validation shows me an error user_username is required. user_passowrd is required. Try to put Code: $fields['user_username'] = 'username'; Will be more elegant (sorry, i don't remmember if is the right word in english)[/quote] I know, I'm still working on it ![]() (but I've changed it anyway)
[eluser]coolfactor[/eluser]
[quote author="codex" date="1193262234"]I *think* I have tackled the main problem. There were requests for non existent CSS files which I guess is pretty bad.[/quote] That would do it. ![]()
[eluser]codex[/eluser]
[quote author="thurting" date="1193344887"]you might want to look into using Amazon S3 to serve assets. it will limit the requests coming into your server and provide fast, reliable, and scalable delivery.[/quote] The site isn't launched *officially* yet, but if the need for serving assets arises I will def look into it. |
Welcome Guest, Not a member yet? Register Sign In |