How to exclude unused files from HTTP requests

  • Author
    Posts
  • #27759
    Richard Buchanan II

    Hello, everyone.

    As the topic says, I’d like to know how to exclude files (specifically style-mobile.css and style-frontpage.css) from the HTTP requests that provide my content to a visitor’s system.

    I’ve copied over the contents of both CSS files into my child theme stylesheet and invalidated style-mobile and style-frontpage with a .bak file extension, but both files are still requested with any navigation on my site. These requests and the amount of time it takes my server to return a 404 Not Found error add a small but cumulative amount of time for my pages to be built, which is a real problem for mobile visitors.

    style-mobile.css and style-frontpage.css are obviously referenced in another PHP or Javascript file, but I can’t find which one. Can you help me find where those unused stylesheets are referenced so I can remove their links to my site?

    Thank you in advance.

    Richard

    #27784
    Richard Buchanan II

    Nevermind, I found both files referenced in theme-styles.php, located in tempera/includes. I can provide details for what to remove if others also want to make their network delivery more efficient.

    Thanks anyway.

    R

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to exclude unused files from HTTP requests’ is closed to new replies.