Just installed a brand new Magento 2.1 with a custom theme slightly edited from the Luma theme. It's up and running but extremely slow to load the css and js before the page renders. If someone could take a look and give some feedback would be huge!
Website is http://www.aesmark.com/shop
Thanks so much!
Solved! Go to Solution.
Try to go to:
Stores -> Configuration ->Advanced -> Developer
You will need to delete static files:
rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs/
then create new static files:
PS: I don't know if it works for .less files like
I forgot to say that you should set Magento to production mode
by adding into .htaccess file:
SetEnv MAGE_MODE production
or with SSH:
magento deploy:mode:set production
great tips from Stanislav.
also, try setting up your server to HTTP/2 protocol with ALPN support.
We are switching most of our clients to that configuration and many of them see 30-60% cut in page load time while having all pages in the store loading from HTTPs (almost a must now after the recent updates in how the browsers show a warning on all unsecured sites and stores).
Thank you all for the the input! Ultimately switching back to Server side less compilation and redeploying into production mode got the site back to speed! Thank you thank you!