• Resolved n0ddles

    (@n0ddles)


    I might be mad but FVM takes my css makes up a single css file like 232456562.css

    Is there a way to dequeue that file from loading on the page in functions php?

    My thoughts; after I FVM my page, say my css file is 24KB, after I purify that file it’s only <5kbs

    So I was thinking I could have FVM make my single file.

    Purify the code

    then in my functions.php set a specific page to swap out the CSS made by FVM for a custom file.

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    That wouldn’t make sense, please elaborate what you are trying to do.

    CSS Purify must come before the content is merged, so you can apply that technique to the original files, and FVM will put them together.

    You “could” (doesn’t mean it’s right) run purify against the generated css files as well, but that would be a server side thing that would monitor the cache directory for any new css files, and purify them asynchronously.

    No, there is no way to deque the files, as merging happens well before that hook, just before the html is generated.

Viewing 1 replies (of 1 total)
  • The topic ‘Dequeue the CSS file’ is closed to new replies.