Remove AddToAny javascript code if not needed
-
Although you can disable AddToAny to be displayed on pages the Javascript code is still loaded on pages. To reduce code and to speed up page load it would be better to not load the Javascript code if it is not needed. I guess many users would appreciate this feature in an upcoming release of AddToAny.
In addition to allow the usage of AddToAny in Europe to be compliant to the EU e-Privacy Directive it would be useful to introduce a new parameter to the additional options to prevent AddToAny from loading until a cookie has been set. The name of the cookie should be the value of the new parameter. This way administrators could use any of the existing WordPress cookie plugins. I would love to see something like
a2a_config.cookieinit = ‘name_of_the_cookie_needed_to_load_a2a’
Kind regards
Michael
The topic ‘Remove AddToAny javascript code if not needed’ is closed to new replies.