Latest on twitter:

Syoichi's Tumblr: JSの前にCSS読み込まないと色々うまくいかないことがある

hamalog:

head内にlinkでcss読み込んで、scriptでjs読み込んで、中で DOMContentLoaded だの jQuery(function(){}) だのやって云々とかやりますよね。これ、

  1. link要素でCSS読み込み
  2. script要素でJavaScript読み込み

の順番でやらないと上手くいかないことがあるみたいです。って今日はじめて知りました。

  1. OK(link先script後)
  2. NG(script先link後)

  1. getovertheborder reblogged this from hamalog
  2. kazzxz reblogged this from syoichi
  3. orihika reblogged this from dotnuke
  4. kgroope reblogged this from syoichi
  5. wevnote reblogged this from hamalog
  6. hidk reblogged this from syoichi
  7. mercure reblogged this from sai10t and added:
    head内にlinkでcss読み込んで、scriptでjs読み込んで、中で DOMContentLoaded だの jQuery(function(){}) だのやって云々とかやりますよね。これ、 link要素でCSS読み込み...
  8. sobaudon reblogged this from syoichi
  9. maechuu reblogged this from hamalog
  10. roughtab reblogged this from syoichi
  11. cuon reblogged this from sai10t
  12. cuon reblogged this from sai10t
  13. sai10t reblogged this from syoichi
  14. tkyis reblogged this from syoichi
  15. ken0205 reblogged this from syoichi
  16. nayutanized reblogged this from soramugi
  17. dotnuke reblogged this from syoichi
  18. saruge reblogged this from syoichi
  19. lugecy reblogged this from syoichi
  20. athsear reblogged this from syoichi
  21. soramugi reblogged this from syoichi
  22. atm09td reblogged this from fingaholic
  23. castellxxx reblogged this from syoichi
  24. garyuten reblogged this from hamalog
  25. stdesign reblogged this from syoichi
  26. orihika reblogged this from syoichi
  27. asanons reblogged this from syoichi
  28. mitakusam337 reblogged this from syoichi and added:
    head内にlinkでcss読み込んで、scriptでjs読み込んで、中で DOMContentLoaded だの jQuery(function(){}) だのやって云々とかやりますよね。これ、 link要素でCSS読み込み...
  29. cr96 reblogged this from syoichi
  30. yameroyo reblogged this from syoichi
  31. fingaholic reblogged this from hamalog
  32. ukar reblogged this from syoichi
  33. syoichi reblogged this from hamalog
  34. hamalog posted this