• Resolved worldtravelgeek

    (@worldtravelgeek)


    Hi !

    Is it possible to optimize amazon javascripts (for search widgets etc)? I have just installed autooptimize and when I let it optimize js then the amazon search box will just disappear from my site ?? That is certainly quite an optimization alright haha

    It works fine again if I just put the word amazon in the exclusion list (I did not have to put the scriptname in it, just the word amazon was enough)

    Oh and I tried the other options, they didnt have an influence on the whole thing.

    I am using the amazon link plugin to create a location aware amazon search box, thats why the script has so many keywords in it:

    </script>
    <script src="//z-%REGION%.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=%MPLACE%&internal=1">
    </script>

    The code from the US website is like that:

    <script src="//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=US"></script>

    https://www.ads-software.com/plugins/autoptimize/

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

    (@futtta)

    nah, the amazon-JS does a document.write, so has to remain exactly in place, so you’d indeed want to exclude it.

    hope this helps,
    frank

    Thread Starter worldtravelgeek

    (@worldtravelgeek)

    Hey Frank,

    thanks for the quick answer. In your opinion, would it at least help (or even work) to host that script locally somehow so that connection and waiting times are reduced. Same goes for other affiliate programs …

    Thanks,
    alex

    Plugin Author Frank Goossens

    (@futtta)

    theoretically that would be possible, but there are important risks associated with that; any update of any of those 3rd party scripts (or any dynamic data in them) could be missing, so things might work at first but might break soon after.

    frank

    Thread Starter worldtravelgeek

    (@worldtravelgeek)

    wow you are fast with your answers, I have to mention that in the review haha ??

    yeah, I guess I would have to check the script files every month or so and reload them. Hey, that would be a great idea for a plugin, right?
    Too bad I am not a programmer ??

    But maybe someone *hint* *hint* could write a plugin (or extend a certain one) that stores js files locally, optimizes them if possible, checks regularily if the script file in the remote location changed and updates the local version if necessary (asynchronously of course) ….

    just an idea ….*hint* *hint*
    ??

    Have a nice day,
    Alex

    Plugin Author Frank Goossens

    (@futtta)

    well that functionality is on a list with possible additional functionality on top of autoptimize, so maybe one day this will be available. chances this will be in 2015 are, however, rather slim.

    frank

    Thread Starter worldtravelgeek

    (@worldtravelgeek)

    oh … 2015 is still young ??
    Hoping for the best and
    Thanks for listening !!

    Alex

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Amazon js optimization’ is closed to new replies.