並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 5 件 / 5件

新着順 人気順

PostMessageの検索結果1 - 5 件 / 5件

  • Is postMessage slow? — surma.dev

    No, not really. (It depends.) What does “slow” mean? I said it before, and I will say it again: If you didn’t measure it, it is not slow, and even if you measure it, the numbers are meaningless without context. That being said, the fact that people will not even consider adopting Web Workers because of their concerns about the performance of postMessage(), means that this is worth investigating. M

      Is postMessage slow? — surma.dev
    • 2019-07-23のJS: TypeScript 3.6 Beta、postMessageとパフォーマンス、Node.js 12の変更点

      JSer.info #445 - TypeScript 3.6 Betaがリリースされました。 Announcing TypeScript 3.6 Beta | TypeScript Roadmap · microsoft/TypeScript Wiki Generator/Iteratorの型改善、 次のようなArray Spreadの変換においてエッジケースで仕様との挙動の違いがあった問題が修正されています。 また、Promiseのawait忘れなどから起きる型の不一致に関するエラー表示改善なども含まれています。 Is postMessage slow? — DasSur.maという記事ではpostMessageで送信するペイロードのパフォーマンスについて書かれています。 postMessageの仕様ではオブジェクトを送る際にStructured Clone algorithmでのシリ

        2019-07-23のJS: TypeScript 3.6 Beta、postMessageとパフォーマンス、Node.js 12の変更点
      • iframeと親ページ間でpostMessageを利用してデータ送受信を行う - Qiita

        はじめに iframe表示部分のクリックイベントを取得するという記事で、iframe内のイベントをiframeのcontentWindowに対しaddEventlistenerを登録して親ページで取得する方法を紹介しました。 この記事ではpostMessageを利用してiframeと親ページ間でやり取りする方法を紹介します。 この記事の対象者 ページに埋め込んだiframe要素から情報を取得したい ページに埋め込んだiframe要素と親ページ間で相互間のデータ送受信を行いたい ページにiframe埋め込みをする前提のページを作成して、イベント発生時に親ページに情報を渡したい iframeと親ページ間のデータ送受信 postMessageを利用した送受信の方法 子ページ データを親ページに送信する場合 window.parent.postMessage(message, targetOrig

          iframeと親ページ間でpostMessageを利用してデータ送受信を行う - Qiita
        • ResizeObserverとpostMessageを使ってクロスドメイン間でコンテンツの高さを同期する - ロカオプ技術ブログ

          はじめに ロカオプの縣です。一番好きなJavaScriptの関数はpostMessageです! ちょい前にiframeでの埋め込みでスクロールバーを出さずにピッタリの高さに中身とiframeの高さを同期が必要な要件がありました。 その際にResizeObserverとpostMessageを使ってうまく実装ができたので、その方法をご紹介します。 iframeの高さ調整問題とは? iframeの高さ調整問題 ここでは便宜的に以下のように呼びます。 親ページ(https://parent.example.com/parent.html):iframeを使って他のページを埋め込む側のページ 子ページ(https://child.example.com/child.html):iframe内で表示されるページ 上記の場合、子ページの高さが可変の場合、iframeの高さを決め打ちで設定していると縦方

            ResizeObserverとpostMessageを使ってクロスドメイン間でコンテンツの高さを同期する - ロカオプ技術ブログ
          • Youtubeで Failed to execute ‘postMessage’ on ‘DOMWindow’: が止まらない – hirokonaBlog

            Youtubeで Failed to execute ‘postMessage’ on ‘DOMWindow’: が止まらない なんじゃこりゃ Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘http://sample.com’). 去年は普通に動いていたはずのサイトで、上記のエラーが出ているので調べた。 結局今の所、1)放置2)気持ち悪いけど対処する、の2択 <script src="https://www.youtube.com/iframe_api"></script> をサイトに読み込ませればいいが、JavascriptIframeA

              Youtubeで Failed to execute ‘postMessage’ on ‘DOMWindow’: が止まらない – hirokonaBlog
            1