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

    (@futtta)

    does that mean mobile css/js is not optimized at all, or that it is but that the result (and your mobile site) is broken? and if not at all; do you still see autoptimize_xyx.css and -.js-files, or just the original files?

    Thread Starter cccbd

    (@cccbd)

    the site works i just see original files, no autoptime files.

    Plugin Author Frank Goossens

    (@futtta)

    OK, I installed & activated WPTouch and some quick tests:

    1. test with normal mobile view
    2. test with a specific landing page for mobile
    3. test with the same landing page but with mobile template “home page”

    1 and 2 worked OK, but when changing the mobile template to “home page” Autoptimize indeed is not working.

    I did some debugging in Autoptimize, and it seems like the “template_redirect” action isn’t called by WPTouch for the “home page” mobile template (but it is for the default mobile template). As this is the entry point for Autoptimize, it indeed is not triggered in that specific context.

    So, if you are on the “home page” mobile template, you could either switch to the default template. If that is not what you need/ want, functionally and if you do need Autoptimize on that page, then I’m afraid you should reach out to BraveNewCode to ask if/ why the template_redirect action isn’t used/ triggered for the “home page” mobile template.

    hope this helps,
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoptimize not working on mobile files’ is closed to new replies.