Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    one could create a code snippet that preloads all Autoptimized (CSS) files, but that would mean the other files are not preloaded except if you preload them all.

    in general preloading lots of files is actually counterproductive, as this forces the browser to change the priority of when things are fetched, potentially clogging bandwidth (esp. on mobile connections) for resources that actually are more important.

    specifically for CSS; that generally is considered high priority for browsers anyhow and they are discovered fast (as they’re directly linked in the HTML).

    my conclusion; preloading CSS would only make sense if (a) you don’t have critical CSS and (b) you only preload the one of two CSS-files that are hyper-critical for immediate rendering?

    hope this clarifies,
    frank

    Thread Starter snippet24

    (@snippet24)

    Thanks for explaining ??
    Okey just a probably bad idea: perhaps to preload only specific CSS files, example main.css (author theme custom css) that AO detects the preloaded the CSS in head so that it only preloads the resulting file for that CSS? I have no idea though if feasible just an idea from the top of my head, most likely is not.
    Kind Regards.

    • This reply was modified 2 years, 9 months ago by snippet24.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, I don’t see an (easy) solution for that (theoretical) situation no ??

    Thread Starter snippet24

    (@snippet24)

    Okey, thanks as always!! ??
    Marking as solved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to preload generated CSS AO file?’ is closed to new replies.