RE: Optimizing Sinisterly Site Speed 04-06-2014, 03:10 AM
#6
I feel parazite's explanation was less than sufficient, so I'm going to try one:
If you want to load a web page really fast, make the web page (in html, javascript, images, and what have you) really small. The less data you need to send, the faster the browser will display the image.
Google, for the most part, is suggesting oni replace what's called "Absolute addressing" with "Relative addressing"
Absolute addressing:
Relative addressing:
Since your browser knows you're already on Sinister.ly, it knows there to go when you tell it
/some-thred-name
So for every link on the page that uses absolute addressing, you can save 22 characters of data you're sending over when you don't have to.
Additionally, you can use trick like taking out "new line" characters and spaces in any html or javascript you have, since the browser ignores them anyway, they just make the code a little easier to read.
I'm sure there are more tricks to reducing size that I don't know of, perhaps someone more knowledgeable could elaborate.
If you want to load a web page really fast, make the web page (in html, javascript, images, and what have you) really small. The less data you need to send, the faster the browser will display the image.
Google, for the most part, is suggesting oni replace what's called "Absolute addressing" with "Relative addressing"
Absolute addressing:
Code:
www.sinister.ly/some-thread-nameCode:
/some-thread-name/some-thred-name
So for every link on the page that uses absolute addressing, you can save 22 characters of data you're sending over when you don't have to.
Additionally, you can use trick like taking out "new line" characters and spaces in any html or javascript you have, since the browser ignores them anyway, they just make the code a little easier to read.
I'm sure there are more tricks to reducing size that I don't know of, perhaps someone more knowledgeable could elaborate.
![[Image: jWSyE88.png]](http://i.imgur.com/jWSyE88.png)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)