Pegasus is a simple JavaScript solution to improve your average time to display data. Use it for static sites or when you can't do server-side data bootstrapping / rendering. Works in all major browsers and IE9+
Pegasus is a simple JavaScript solution to improve your average time to display data. Use it for static sites or when you can't do server-side data bootstrapping / rendering. Works in all major browsers and IE9+
å¤é¨ã¹ã¯ãªãããã¡ã¤ã«ãå®ç¾©ãã script è¦ç´ ã« defer="defer" å±æ§ã追å ããã¨ãããã±ã¼ã¹ã§ãinternet explorer (IE) ããã®ã¹ã¯ãªãããã¡ã¤ã«ã解æã§ããªããªãã¨ããåé¡ã®ç´¹ä»ã§ãã ãããã±ã¼ã¹ãã¨ããã®ã¯ãdiv è¦ç´ ãªã©ã® innerHTML ãæ¸ãæãããã¨ã§ããèªåã§ãã®ãããªã³ã¼ããæ¸ããªãã¦ããä¾ãã°ãSWFObject ã使ã£ã¦ Flash ãåãè¾¼ãå ´åã« innerHTML ã®æ¸ãæããè¡ããã¾ãã ãã ããhtml ã³ã¼ããæ¸ãé çªãåé¡ã§ãdefer å±æ§ã追å ãã script ã¿ã°ãåºç¾ããå¾ãinnerHTML ãæ¸ãæããå ´åã«éãã¾ããé çªãå対ã®å ´åã¯åé¡ã¯èµ·ããã¾ããã 確証ããªãã®ã§ã¯ã£ãããããã¨ã¯è¨ãã¾ããããèªåã試ããéãã§ã¯ãã¹ã¯ãªããã®åå¾ã«æéããããï¼ãµã¼ãã¼ã®å¿çãé ãï¼ã¨åé¡ãçºçãã
å®è¡çµæ Hello World! ãã¼ã¯ã¢ãã <p id="result"> Hello <script src="D.js" defer></script> <script src="E.js" defer></script> <script src="F.js" defer></script> World! </p> 解説 script[defer] doesnât work in IE<=9 ã§å ±åããã¦ãããIE9 以ä¸ã§ jquery.js 㨠jquery-ui.js ããããã defer å±æ§ä»ãã§èªã¿è¾¼ãã éã«èµ·ãããã°ããåç´åãã¦åç¾ãã¾ããã çºçåå 㯠innerHTML ãä»ãã¦æ¢å DOM ã« ç´æ¥ HTML ãæ¿å ¥ãããã¨ã¨æ¨å®ããã¦ãããæ¬ä¾ã§ã¯ D.jsãE.jsãF.js ã次ã®ãããªã³ã¼ãã«ãã¦ãã¹ã¯ãªããã®å®è¡ãéä¸ã§ã¹ãã¼ã«ãã¦ãã¾ãæ§åãå
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}