SKDown Posted August 7, 2010 Share Posted August 7, 2010 I noticed that the html output when opening any page is very messy:lots and lots of tabs and indenting useless javascripts for guests (LOTS) all css parts are loaded, even those not used at all I highly request a nice mod/hook to clean those or even better ipb them selfs to start cleaning out their mess! it is a shame to see an unoptimized site. regarding javascripts, it should be solved in every hook installed, why the status update for guests require javascript and ajax? I hope this take some attention here. Let me know what you think! Link to comment Share on other sites More sharing options...
alex.1096@yahoo.com Posted August 7, 2010 Share Posted August 7, 2010 I support this topic 100%. :) It would be a great idea and help for me and future forums. Link to comment Share on other sites More sharing options...
Kessler Posted August 10, 2010 Share Posted August 10, 2010 I noticed that the html output when opening any page is very messy:lots and lots of tabs and indenting I'm not part of the team that handles the HTML and coding, however I felt compelled to address this issue you brought up. There are many benefits to tabbing and indenting, one of which is readability of the code. You could either deal with code that is all piled together and unreadable or code that is indented for various reasons. The indented code is much easier to read and in turn is much easier to go through and modify or even debug if necessary. It's the same when writing source code for programs and scripts. Readability is an important factor and makes it much easier to deal with. I hope that makes sense. :) Link to comment Share on other sites More sharing options...
Jaggi Posted August 10, 2010 Share Posted August 10, 2010 are you using the default ipb skin or a custom skin? i don't think the ipb source is messy at all. Link to comment Share on other sites More sharing options...
SKDown Posted August 14, 2010 Author Share Posted August 14, 2010 hello, thanks for the reply, i agree with what you said, but i don't think the attached file and the way of indenting have anything to do with it. also, this applies to all skins. some javascripts are totally useless for guests! Link to comment Share on other sites More sharing options...
Collin1000 Posted August 15, 2010 Share Posted August 15, 2010 Tabs and intenting make it a million times easier to read. I'm not aware of any "useless javascript for guests" but if it bugs you, turn on minify or even better, use the google hosted JS. Link to comment Share on other sites More sharing options...
Collin S. Posted August 15, 2010 Share Posted August 15, 2010 This topic will be moved from technical support to feedback, where it better fits. Link to comment Share on other sites More sharing options...
SKDown Posted August 15, 2010 Author Share Posted August 15, 2010 have you checked my attached file? is this how a code is organized? i am not that much bothered, but from what i can read, i see javascripts for posting purposes loaded as well for guests. too much tabs where it isn't needed. Link to comment Share on other sites More sharing options...
I am Freddy G Posted August 15, 2010 Share Posted August 15, 2010 I agree with loading only certain aspects of css. Although that would be extremely hard I believe though. I like the tabbing only problem is I am used to using 2 spaces for a tab Link to comment Share on other sites More sharing options...
Collin S. Posted August 15, 2010 Share Posted August 15, 2010 have you checked my attached file? is this how a code is organized? i am not that much bothered, but from what i can read, i see javascripts for posting purposes loaded as well for guests. too much tabs where it isn't needed. The tabs used are exactly proper format - each nested item is a tab indent. IPS has a document that outlines their coding guidelines, and there are a few guidelines on proper indentation and nesting. These are for readability and basic understanding of the code. Link to comment Share on other sites More sharing options...
SKDown Posted August 15, 2010 Author Share Posted August 15, 2010 what about javascripts loaded for guests where they don't need it? Link to comment Share on other sites More sharing options...
nes718 Posted August 16, 2010 Share Posted August 16, 2010 Re: the attachment From what I have studied on the IPB source code, these kinds of white lines are hard to avoid because of how the templates are parsed. You have conditional statements in there that when false will only output the carriage return. But this really doesn't affect performance one way or the other. This is a result of dynamic server side scripting that's inherit to HTML since the 'cgi' days. I can live with this. What IPB should concentrate on is making the output validate. Other than that, I have no issues with how the HTML is output. Because I'm not looking at the source code. I'm looking at the end product and that should be error free. hello, thanks for the reply, i agree with what you said, but i don't think the attached file and the way of indenting have anything to do with it. also, this applies to all skins. some javascripts are totally useless for guests! Link to comment Share on other sites More sharing options...
SKDown Posted August 16, 2010 Author Share Posted August 16, 2010 i assume you all are concerned on one part which is the html output,.. what about the javascripts and css? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.