並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 4 件 / 4件

新着順 人気順

document.writeの検索結果1 - 4 件 / 4件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

document.writeに関するエントリは4件あります。 webperformancecss などが関連タグです。 人気エントリには 『document.write再考』などがあります。
  • document.write再考

    English Abstract This document revisits the document.write method, exploring its functionality, application, and relevance in contemporary web developm…

      document.write再考
    • Why Not document.write()? – CSS Wizardry

      10 January, 2023 Why Not document.write()? Written by Harry Roberts on CSS Wizardry. Table of Contents What Makes Scripts Slow? The Preload Scanner document.write() Hides Files From the Preload Scanner What About Async Snippets? document.write() Executes Synchronously Is It All Bad? Early document.write() Late document.write() It Gets Worse… Avoid document.write() If you’ve ever run a Lighthouse t

        Why Not document.write()? – CSS Wizardry
      • 「え!? jsの遅延ロードで document.write 動かないんですか!? 」からの解決方法 - Qiita

        概要 document.writeが入った外部jsを、Reactで作られたクライアント側で遅延実行したかったけど、様々な都合からできないことを知り、色々調べた結果、解決方法を発見しました。 この記事が解決する可能性のある状況 adなどで、外部サーバーにホスティングされたJavaScriptファイル(以下、外部js) を、サイト上に<script>を使ってロードする必要がある 外部jsに document.write が使われていてるが、その仕様を変更することが難しい。 React で 実装する必要がある。 免責事項 本投稿の内容を実践し、なんらかの不利益を負った場合も、当方は責任を負いません。 結論 postscribe を使う インストールなど ↑のgithubリポジトリ参照 コード // Test.tsx import React from 'react'; export defaul

          「え!? jsの遅延ロードで document.write 動かないんですか!? 」からの解決方法 - Qiita
        • 【JavaScript】非推奨の「document.write()」の代替方法

          これ。 つい先日まで知らなかったんですが。 JavaScriptの「document.write()」を使うのは現在はNGとされているようですね。 W3CではHTML5でのdocument.write()の使用を非推奨としています。 またGoogleの PageSpeed Insights でも、document.write()を使っていると警告が表示されます。 具体的には、ウェブサイト読み込み時のローディング処理のために、下記のようなコードを<head>〜</head>内に記述していました。 <head> <script> document.open(); document.write('<link rel="stylesheet" href="style.css">'); document.close(); </script> </head> 複数のサイトで似たようなコードを使用してし

            【JavaScript】非推奨の「document.write()」の代替方法
          1

          新着記事