Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Evening superpoincare;
    I suppose you’re using “defer & inline” and you would like to switch to normal behavior (non-inline, non-deferred) as from the 2nd pageload?

    By default: no, but it could be don with some development;
    * assuming you’re running some kind of page cache (plugin or caching reverse proxy) (you should, really), you would have to develop against that caching solution to alter the way the page (HTML) is built on the 2nd visit.
    * if you’re not running a page-cache-solution (which I would advice against), AO could theoretically do that (if you’re into coding you could do that yourself using the API, using the autoptimize_filter_css_inline and autoptimize_filter_css_defer-filters)
    * in both cases the solution could be built around setting a cookie on first visit and if the cookie is there alter the way CSS is injected. if you’re into coding you could do that yourself using the API (using the autoptimize_filter_css_inline and autoptimize_filter_css_defer-filters).

    hope this helps,
    frank

    Thread Starter Ramanan

    (@superpoincare)

    Thanks Frank, that was helpful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load CSS on top on second visit’ is closed to new replies.