Malisa Malisa - 16 days ago 5
PHP Question

css and js file source output instead of link to each file

Would really appreciate some help with the above.
Currently have a dev site that is using WordPress as engine.
Recently, when viewing the source code, certain css and js required files are being output into the page source, instead of the usual link to each file.
This is creating a source file some 20000 lines long.

It doesnt happen when viewing on my localhst Xampp machine.
Both sites are running the latest version of WordPress and Latest version of PHP.
Both are using exactly the same theme files too.
I just dont know why this is happening and wonder if anyone can shed light?

Live dev site is at live dev site

Also, just noticed, its not happening in Firefox.

Answer

I checked right now and I see all CSS and JS is are usual links to files. And your page have only 356 lines. Maybe you see the cached version of the website in your browser? Try to refresh with ctr+f5, try to clear all cache in WordPress.

Comments