Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2011-07-15 チューニングが楽になる JavaScript 道具箱

8,733 views

Published on

Published in: Technology
  • If you need your papers to be written and if you are not that kind of person who likes to do researches and analyze something - you should definitely contact these guys! They are awesome ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Follow the link, new dating source: ❶❶❶ http://bit.ly/2u6xbL5 ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ♥♥♥ http://bit.ly/39sFWPG ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ♥♥♥ http://bit.ly/39sFWPG ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

2011-07-15 チューニングが楽になる JavaScript 道具箱

  1. 1. JavaScript2011-07-15 CA × pixiv 1
  2. 2. 2
  3. 3. 3
  4. 4. 4
  5. 5. pixiv.lazyImage 5
  6. 6. 6
  7. 7. <img class="ui-lazy-image" src="transparent.png" data-src="image.png"> 7
  8. 8. 8
  9. 9. pixiv.throttle 9
  10. 10. 10
  11. 11. $(window).scroll($.proxy(this.onscroll, this));!$(window).scroll(pixiv.throttle(this.onscroll, this)); 11
  12. 12. 12
  13. 13. pixiv.api.request $.ajax + Storage API 13
  14. 14. 14
  15. 15. pixiv.api.get(/api/foo, queries);// sessionStoragepixiv.api.get(/api/foo, queries, {cache: true});// localStoragepixiv.api.get(/api/foo, queries, {cache: +new Date + 604800000}); // 1w// Objectpixiv.api.get(/api/foo, queries, {cache: pixiv.foo.data}); 15
  16. 16. // jQuery Deferredpixiv.api.get(/api/foo, queries, {cache: true}) .done(function(data) { ... }) .fail(function(e) { ... }); 16
  17. 17. 17
  18. 18. 18
  19. 19. 19
  20. 20. p(ixi)v < 20

×