The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I've noticed in the code (any vb code) there are sometimes spaces between lines of code. Does that have any adverse effect on load time?
Is there a reason for what I call white space? Would it hurt anything if I closed up all the code so there was no "white space"? |
#2
|
||||
|
||||
![]() Quote:
As an aside, javascript and css there's a benefit to having minimal whitespace, which is why vbulletin css (and js I believe) by default comes minified because it saves you bandwidth to send a file with minimal size. |
#3
|
|||
|
|||
![]() Quote:
|
#4
|
||||
|
||||
![]()
Just to clarify further, in code white space is not the line breaks, which is what I think you were referring to specifically. White space is anywhere the space bar was pressed. So minified CSS and JavaScript remove white space, new lines and tabs from the code and compresses it down to practically unreadable code. But it does save some resources. However, if you were thinking of just removing space and lines inside templates, then the effect on page load would be negligible and make it harder to read (and upgrade).
|
Благодарность от: | ||
K4GAP |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|