wordpress - Suggestions on why site is slow/how to speed up? -


i know website image based, have limited plugins as can , compressed css , styling. shouldn't slow is. reason why or can speed up? thanks

in opinion

1- using css , javascript
2- eliminate render-blocking javascript , css in above-the-fold content
3- should optimize image
4- can upgrade server faster server
5- enable compression , browser caching
, .....

edit: how improve above steps:

1- better performance better keep page size under 600kbit it's because of theme or plugin use, if can, change template optimize version , reduce unnecessary plugins. on other hand there features can handle few codes, rather install new plugin new plugins has self javascript , css

2-put javascript codes on footer befoter </body> (help), , create javascript loader css, insert css on head.(help) simple example of render-blocking

<!doctype html> <html> <head>     <title>title</title>     <!-- not insert css or javascript here --> </head> <body> <!--  #################     contents #################  --> <script type="text/javascript" src="/dis/cssloader.js"></script> <script type="text/javascript" src="/dis/scripts.js"></script> </body> </html> 

and cssloader

//cssloader.js var version = "?v1"; var cb = function() {     var styles = [         "/dist/custom1.min.css",         "/dist/custom1.min.css",     ];     var h = document.getelementsbytagname('head')[0];     (var = 0; < styles.length; i++) {         var l = document.createelement('link');         l.rel = 'stylesheet';         l.href = styles[i]+version;         h.appendchild(l);     } }; var raf = requestanimationframe || mozrequestanimationframe || webkitrequestanimationframe || msrequestanimationframe; if (raf) raf(cb); else window.addeventlistener('load', cb); 



3- optimizing image means reduce image scale can, , saved images web (if using photoshop has option this, it's obvious reduce images quality )

4-sometime configuration on server , improve it's performance 5- if using apache, should add line of codes on apache config comperssion , caching enable it, can .htaccess (help)(help)


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -