Feng Forum

Support => Feng Office 3 => : vat78 May 14, 2015, 10:16:13 AM

: Javascripts work very slow
: vat78 May 14, 2015, 10:16:13 AM
Hi!
I have a problem with javascripts after upgrade to version 3. They work very slow. Browser don't respond around 30-60 seconds.
I suggest it depends on amount of members in Dimensions which i have used.
Is any solutions for increase  speed of javascripts?
--
vat
: Re: Javascripts work very slow
: franponce87 May 19, 2015, 12:42:00 PM
Well, this would very much depend on the computer that you are using. What is its CPU like?

Also, how are you sure it is a JS issue and not a server side one? Have you looked into FireBug or other systems?

Best regards,
Francisco
: Re: Javascripts work very slow
: imendes May 19, 2015, 01:08:19 PM
Try to add this to your .htaccess file:

<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>

If it doesn't work, try this instead (for Apache servers):

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

This enables GZIP compression on your website.