• Resolved audiowarrior

    (@zonwarrior)


    Hi Benjamin,

    Hope you are doing well during this challenging time.

    Background:
    I plan on using a plugin called Autoptimize. Autoptimize does not cache pages, it only optimizes JS, CSS, HTML, Google Fonts & Images. Overall, it caches the optimized JS/ CSS for re-use, but the page (HTML) is not cached.

    Question:
    Does GeoIP Detection plugin inject non-static JS or CSS code inline in my page’s HTML? Just curious, because it may conflict with Autoptimize.

    p.s. I use your shortcode syntax in my pages. For example: Top 10 Pizzas in [geoip_detect2 property=”mostSpecificSubdivision.name”]

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Benjamin Pick

    (@benjamin4)

    No, probably not in your case.
    It adds inline JS, but only if you use the AJAX option (which you probably don’t if you don’t have an HTML cache.)
    The shortcode is replaced by the live value. This means that the HTML cache of Autoptimize will have a version of every location that any visitor may have – this limits its use of course ?? The AJAX solution is made for that (keeping the HTML the same) but it doesn’t support these shortcodes yet.

    • This reply was modified 4 years, 11 months ago by Benjamin Pick.
Viewing 1 replies (of 1 total)
  • The topic ‘Does this plugin inject non-static JS or CSS code?’ is closed to new replies.