This document summarizes a presentation about frontend caching. It discusses techniques for improving website performance such as reducing HTTP requests, optimizing images, minifying files, enabling compression, using a content delivery network, and tools for testing performance. The presentation emphasizes optimizing elements that impact user perception of speed like above-the-fold content and decreasing page weight.
44. Parallel Downloads
One domain = 2 Parallel connections
Saturday, 14 May 2011
45. Parallel Downloads
One domain = 2 Parallel connections
HTML
Image
Image
Image
Image
Image
Image
Image
Image
0.4 0.8 1.2 1.6 2 2.4 Secs
Saturday, 14 May 2011
46. Parallel Downloads
Two domains = 4 Parallel connections
HTML
Image
Image
Image
Image
Image
Image
Image
Image
0.4 0.8 1.2 1.6 2 2.4 Secs
Saturday, 14 May 2011
47. Parallel Downloads
Too many hostnames can cause complications
Saturday, 14 May 2011
48. Parallel Downloads
Too many hostnames can cause complications
2 – 4 sub domains is a good average
Saturday, 14 May 2011
49. Combine Files
Combining 6 scripts into 1 eliminates 5 requests
Saturday, 14 May 2011
50. Combine Files
Combining 6 scripts into 1 eliminates 5 requests
Challenges:
develop as separate modules
combinations vs. loading more than needed
Saturday, 14 May 2011
51. Javascript
Doesn’t comply with
parallel download rules
Saturday, 14 May 2011
52. Javascript
Doesn’t comply with
parallel download rules
HTML
JS
Image
Image
Image
Image
Image
Image
Image
0.4 0.8 1.2 1.6 2 2.4 Secs
Saturday, 14 May 2011
53. Javascript
script defer attribute is not a solution
Saturday, 14 May 2011
54. Javascript
script defer attribute is not a solution
Solution - move them as low in the
page as possible
Saturday, 14 May 2011