14. USE FALLBACKS
if ( ! function_exists( 'pll__' ) ) {
function pll__( $string ) {
return __( $string , 'my-theme-textdomain' );
}
}
15. FROM PAGE GENERATION TIME
SHAVING MANY % OFF
* Actual results may vary and terms do apply
*
16. 0
22,5
45
67,5
90
front page post-new.php
default install: 0 plugins
theme: twentysixteen
en fi
0
100
200
300
400
front page post-new.php
15 popular plugins
theme: twentysixteen
+42%
+72%
+74%
+59%
msms
17. NOT EVEN A SLOTH IS AS SLOW AS
LOAD_TEXTDOMAIN
18. WHAT IF?
0
22,5
45
67,5
90
front page post-new.php
en fi
0
100
200
300
400
front page post-new.php
+42%
+72%
+74%
+59%
+12%
+30%
+6%
+42%
fi, cached
ms ms
19. WE CAN!
NOTE: YOU NEED AN OBJECT CACHE LIKE REDIS, MEMCACHED OR APCU
wordpress.org/plugins/wp-performance-pack/
OR ONLY THE CACHEABLE MO LOADING:
github.com/aucor/dynamic-mo-loader
37. TRANSLITERATION PLUGINS
CYRILLIC: CYR TO LAT ENHANCED
wordpress.org/plugins/cyr3lat/
CHINESE: SO PINYIN SLUGS
wordpress.org/plugins/so-pinyin-slugs/
ARABIC: ARABIC TO LAT
wordpress.org/plugins/arabic-to-lat/
wordpress.org/plugins/tags/transliteration