My wordpress website is currently very slow as it has a lot of unused files and because people have worked on it since 4 years. I there a way I could check if a particular css or js file is being used anywhere in my website so that I could delete if not being used and make my website faster?
- Does this answer your question? Search for all occurrences of a string in a mysql databaseJustinas– Justinas2020-09-22 06:43:13 +00:00Commented Sep 22, 2020 at 6:43
- How do you define "being used"? If the file is not included in the build / loaded in the html, then it wont contribute to the performance of the website.Olian04– Olian042020-09-22 06:43:26 +00:00Commented Sep 22, 2020 at 6:43
- 1I doubt deleting unused files from the server would solve the performance problems.Teemu– Teemu2020-09-22 06:43:49 +00:00Commented Sep 22, 2020 at 6:43
- yes because they are big css and js files being loaded every time website loadsShikhar– Shikhar2020-09-22 06:44:36 +00:00Commented Sep 22, 2020 at 6:44
- 1Deleting won't help in making your website load faster. Since the files which aren't used aren't using any resources except storage which doesn't matter if you have enough storage. You need to find for those files which are linked to your HTML pages and check on f they are used or can be removed. That'll be helpfulOmi Shah– Omi Shah2020-09-22 06:44:37 +00:00Commented Sep 22, 2020 at 6:44
| Show 4 more comments