• Love the plugin. The only issue I have is that there are no specific options for mobile and desktop. Deferring Critical CSS and JS works well on mobile, but many times i’m finding that it will cause issues on the desktop. I’m wondering is there a way to make it more specific or if you would be able to add options for both mobile and desktop. I’m aware that “mobile” is a generally broad term due to the size of screen options etc but it would be something of interest as i’ve been working on optimizations for sites and this is one of the only items that consistently seems to be an issue.

    https://ww.wp.xz.cn/plugins/autoptimize/

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

    (@futtta)

    interesting question mark … not an easy one.

    for starters, it depends on a number of factors outside of AO;
    * are you using a page cache and does it differentiate between mobile & desktop?
    * are you using a mobile-specific theme (via e.g. wp touch or jetpack)?

    as far as AO standalone is concerned; there’s no specific settings on the config screen, but you can use the API to conditionally (using e.g. wp_is_mobile()) act differently on desktop (i.e. if !wp_is_mobile).

    hope this clarifies somewhat, I’ll be happy to provide you more feedback if you have follow-up questions!

    frank

Viewing 1 replies (of 1 total)

The topic ‘Mobile JS and CSS’ is closed to new replies.