Skip to content

Instantly share code, notes, and snippets.

@tamata78
Created February 7, 2019 03:10
Show Gist options
  • Save tamata78/11381ddfe349ca80bd2c5cdef1122a79 to your computer and use it in GitHub Desktop.
Save tamata78/11381ddfe349ca80bd2c5cdef1122a79 to your computer and use it in GitHub Desktop.
JavaScript tips

imp計測API

見えない画像を表示させたタイミングでAPI実行

    var image = new Image(0, 0);
    image.style.cssText = "display:none";

    (function () {
        image.src=('//localhost:8080/testapp/imp?code=1');
        document.body.appendChild(image);
    }());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment