How to fix the problem of loading css and javascript files (duplicate)

Can you give me a hand?

How to fix the problem of loading css and javascript files

First go in magento root directory

1: rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*

2: php bin/magento setup:static-content:deploy

3: chmod 777 -R var/* or chmod 777 var -R

chmod 777 -R pub/* or chmod 777 pub -R

1 Like

Thank you very much for your interest in process was successful.
So why we have met with such a problem?

So why we have met with such a problem?

That because performance of your web server too weak and it can’t finish the generate needed static files task via browser.

May be reson mention by Vu Quynh is correct but it is due to the permission error of pub folder the js and css were not loaded at the complie/deploy time.