cancel
Showing results for 
Search instead for 
Did you mean: 

After reindex css and js not loading on live site

After reindex css and js not loading on live site

Have this issue all css and js are not loaded on live site.

Tried with terminal to do this.

 

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

then

php bin/magento indexer:reindex

and in the end

php bin/magento cache:flush

And after all this still have issue with css and js not loading. I need help bad.

4 REPLIES 4

Re: After reindex css and js not loading on live site

Hello @azguard ,

 

Please share your website URL if possible, any fatal error while command run ?

Share your web console errors of frontend so the error can be visible.

 

two possible cases :

1. Content security policy of your static content is loading from other domain.

2. 404 files which could be due to wrong base static path configurations, in that case open any 404 in new browser, add pub/ in URL before "static/" if pub/ is not added and remove if already added and try to load file, if in any case file loads properly and not throwing 404 then it's issue with base static path.

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: After reindex css and js not loading on live site

This is the URL https://industria.rs/

Re: After reindex css and js not loading on live site

are you sure issue exists anymore ?

I can see it loading perfectly file : https://www.awesomescreenshot.com/image/23546374?key=663a71c0b12606a593b585c4210c8a2d Smiley Wink

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: After reindex css and js not loading on live site

fixed got solution on another forum but 10x for trying to help. This was something that I didn't anticipated to happen