Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
958 views
in Q2A Core by

optimization http://www.question2answer.org/qa/29434/new-theme-royal-minimal-by-q2a-market

https://developers.google.com/speed/pagespeed/insights/

Google PageSpeed Insight Result: 71/100 Mobile - 82/100 Desktop

after

Google PageSpeed Insight Result: 79/100 Mobile - 92/100 Desktop

add async <script async src="my.js">  \qa-include\qa-page.php  - line 348 and 354

and add async  to the template

source:  https://developers.google.com/speed/docs/insights/BlockingJS

add htaacces 

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
 
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
 
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf|woff)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
Q2A version: 1.6.3

Please log in or register to answer this question.

...