Css and Js do not load on first visit to the site

What is the domain name?
Webconceptor

When you tested your domain, what were the results?
Only html is loading on first time visit

Describe the issue you are having:
When someone visits the site for the first time the .css and .js styles don’t load, here are the console errors “purecounter_vanilla.js:1 Uncaught SyntaxError: Unexpected token ‘<’”

What error message or number are you receiving?
purecounter_vanilla.js:1 Uncaught SyntaxError: Unexpected token ‘<’
aos.js:1 Uncaught SyntaxError: Unexpected token ‘<’
bootstrap.bundle.min.js:1 Uncaught SyntaxError: Unexpected token ‘<’
glightbox.min.js:1 Uncaught SyntaxError: Unexpected token ‘<’
isotope.pkgd.min.js:1 Uncaught SyntaxError: Unexpected token ‘<’
swiper-bundle.min.js:1 Uncaught SyntaxError: Unexpected token ‘<’
validate.js:1 Uncaught SyntaxError: Unexpected token ‘<’
main.js:1 Uncaught SyntaxError: Unexpected token ‘<’

Thanks in advance

That’s not just on the first visit. Your server returns a 404 HTML page for all the resources. You need to clarify this with your web developer, Cloudflare is not involved here.

1 Like

indeed, thank you very much! it’s because of my .htaccess

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.