drupal performance
play

DRUPAL PERFORMANCE A Surgical Approach 1 1 @mandclu MARTIN - PowerPoint PPT Presentation

DRUPAL PERFORMANCE A Surgical Approach 1 1 @mandclu MARTIN ANDERSON-CLUTZ 2 PERFORMANCE 3 SHOULD YOU CARE? Amazon - every 100ms of latency cost 1% in sales - Shopzilla speeding up their site by 5 seconds: - conversion


  1. DRUPAL PERFORMANCE A Surgical Approach � 1 � 1

  2. @mandclu MARTIN ANDERSON-CLUTZ � 2

  3. PERFORMANCE � 3

  4. SHOULD YOU CARE? Amazon - every 100ms of latency cost 1% in sales - Shopzilla – speeding up their site by 5 seconds: - conversion rate: +7-12% - sessions from SEM: +100% - required servers: -50% - COOK - reducing page load time by 0.85 seconds increased - conversions by 7% � 4

  5. SPEED FOR SEO Speed is a ranking factor - Mobile since 9 Jul 2018 - Desktop since 2010 - Speed is a crawling factor - Crawl budget - Crawl rate - � 5

  6. SPEED VS RETENTION 60.0 58% 45.0 Bounce Rate (%) 30.0 20% 15.0 12.8% 0.0 0 2.5 5 7.5 10 Load Time (seconds) Source: Akamai � 6

  7. POTENTIAL FACTORS Server - Code - Number of modules - Complexity of modules - Custom code - Configuration - Caching - Assets - Third-party assets and services - � 7

  8. A SURGICAL APPROACH Test Diagnose Operate Monitor � 8

  9. TEST � 9

  10. DEFINE THE PROBLEM DELINEATE IDENTIFY ISOLATE What can/can’t 
 Which pages 
 Where in the be changed in 
 need attention? page(s) does it the site? occur? � 10

  11. DELINEATE “Nice to haves” vs. true requirements - Remarketing pixels - Social widgets - Carousels - � 11

  12. http://shouldiuseacarousel.com/ � 12

  13. “Simplicity is the ultimate sophistication.” � 13

  14. IDENTIFY - GOOGLE ANALYTICS � 14

  15. IDENTIFY - SCREAMING FROG � 15

  16. ISOLATE Run detailed tests to determine where in each page the - slowdown(s) occur: Page Load - On-Site Assets - 3rd Parties - � 16

  17. � 17

  18. � 18

  19. � 19

  20. DIAGNOSE � 20

  21. PAGE LOAD � 21

  22. GO DEEP Site Audit (contrib module/drush command) - New Relic (commercial / free on Pantheon) - Blackfire (commercial) - � 22

  23. � 23

  24. � 24

  25. � 25

  26. � 26

  27. � 27

  28. � 28

  29. � 29

  30. � 30

  31. � 31

  32. IMPROVING PAGE LOAD Data Page Content - - Remove external loads Break into more pages - - Views show SQL query, Keep markup clean - - EXPLAIN Load hidden content via - AJAX instead � 32

  33. IMPROVING FIRST BYTE Server Cache - - CPU, RAM Page caching - - PHP 7.1+ Views output cache - - Varnish Views data cache - - Data Cache 
 - (APCu, etc.) 
 � 33

  34. MODULES! Consider adding: Uninstall: - - BigPipe AS MANY AS POSSIBLE! - - Fast 404 Devel - - Syslog UI Modules - - Purge Statistics - - Search? - Database log 
 - (in favour of syslog) PHP Filter - � 34

  35. ON-SITE ASSETS � 35

  36. ON-SITE ASSETS Images! CSS and JS - - Keep small Use only what’s necessary - - Responsive images esp. Aggregate - - for banners Compress and minify - Optimize Render-blocking elements - - Compress aggressively at end of page - Lazy load Content Delivery Network - - (CDN) � 36

  37. GO DEEP Lighthouse audit (Chrome) - Page Speed Insights (Google) - � 37

  38. � 38

  39. � 39

  40. � 40

  41. MODULES! Advanced Aggregation - Responsive Image - Image Optimize/Kraken - Image Lazyloader - CDN - � 41

  42. 3RD PARTIES � 42

  43. 3RD PARTIES Use as few as possible - or load on user interaction - Cache and serve with local assets 
 - (ideally via CDN) Consider aggregator services, especially for social - sharethis, addtoany, etc. - � 43

  44. MODULES AddToAny - Relocator (part of AdvAgg) - � 44

  45. OPERATE � 45

  46. MAKE IT SO Don’t do everything at once - Make changes in small increments - Test and measure before and after deploying - Iterate quickly - Start with quick wins - � 46

  47. EFFORT VS IMPACT Low Effort High Low High Impact � 47

  48. MONITOR � 48

  49. MONITOR Performance metrics as part of site health - CI integration - New Relic - Blackfire - Sitespeed.io - Modules: - Monitoring - Performance monitor - � 49

  50. � 50

  51. � 51

  52. � 52

  53. #DRUPALCONTRIBUTIONS Join us for contribution opportunities Friday, April 12, 2019 Mentored First Time Contributor General Contributions Workshop Contributions 9:00-12:00 9:00-18:00 9:00-18:00 Room: 606 Room: 6A Room: 602 � 53

  54. WHAT DID YOU THINK? Locate this session at the DrupalCon Seattle website: http://seattle2019.drupal.org/schedule Take the Survey! https://www.surveymonkey.com/r/DrupalConSeattle � 54

  55. <SHAMELESS PLUG> � 55

  56. QUESTIONS Q COMMENTS � 56

  57. THANKS! � 57

  58. � 58

  59. � 59

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend