sfraise Posted May 7, 2010 Share Posted May 7, 2010 I'm trying to find a clean way to only call an external script once per visit using cookies but am having some trouble with it. I think the main issue lies in the actual calling of the script within the script. The problem is the js is on a 3rd party site which I don't have access to, they simply give me a <script>'http://pathtoscript.js'</script> to place in the body of the page. It's super annoying to have this script load on every page load for the visitor and really need to limit it to only once per visit. I thought about using an iframe to try and get around the problem by placing the script on the iframe page and then only loading the iframe once per visit but I was hoping there might be a cleaner way to do it. Anyone have any ideas on how to do this cleanly? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.