タグ

jQueryに関するvvakameのブックマーク (39)

  • 【翻訳】Publishing your jQuery plugin to npm, the quick and dirty way — Medium

    The author chose to make this story unlisted, which means only people with a link can see it. Are you sure you want to share it?Yes, show me sharing options 【翻訳】Publishing your jQuery plugin to npm, the quick and dirty way邦題:あなたのjQuery pluginをnpmに公開する方法The jQuery Plugin Registryは読み取り専用になり、npmへの引っ越しがオススメされています。この文章を読んでいるということは、あなたはnpmへの引っ越しを考えているjQueryプラグインの作者さんでしょうか。私たちは、その引っ越しが痛みを伴わないことを望んでいます。np

  • そのコード、本当にjQueryが必要ですか?ネイティブ関数の代替Tips集 | ゆっくりと…

    sitepoint から「当にjQueryが必要ですか?」とタイトルのついた3の記事を紹介します。 Do You Really Need jQuery? Native JavaScript Equivalents of jQuery Methods: the DOM and Forms Native JavaScript Equivalents of jQuery Methods: Events, Ajax and Utilities 言うまでもなく著者の Craig Buckler さん の趣旨は、「jQueryを使うのは止めよう」ではありません。ネイティブ関数で代替えできるのは、古い IE のサポートが必要なく、ごく簡単なケースに限られます。その代わりに得るものは「速さ」です。そこで、どの程度「速い」のかを所々 jsperf の結果で補ってみたいと思います。 また JavaScri

  • jQuery 2.0 リリース | DevelopersIO

    jQuery 2.0 jQuery 2.0がリリースされました。jQuery 2.0は、最新ブラウザ向けに作られています。 古いブラウザをサポートするには、jQuery 1.xを使うことです。また、jQuery1.xは今後もサポートされていきます。 jQuery 2.0で変わったこと IE 6/7/8はサポートされていません。 分岐する必要があります。 <!--[if lt IE 9]> <script src="jquery-1.9.1.js"></script> <![endif]--> <!--[if gte IE 9]> <script src="jquery-2.0.0.js"></script> <![endif]--> JSファイルサイズ縮小 jQuery 2.0.0ファイルは、IE6,7,8の撤廃のおかげで1.9.1ファイルよりも12%小さくなっています。 カスタムビルド

    jQuery 2.0 リリース | DevelopersIO
  • Kimbo.js - An ECMAScript 5 only-compatible JavaScript library

    Robust & ModernKimbo premise is to use the latest ECMAScript 5 and DOM APIs that are supported by modern browsers without losing robustness. Fast & LightweightKimbo is as fast as light-weight, taking advantage of native speed features and never more adding extra weight for older browsers.

    vvakame
    vvakame 2013/02/27
    jQueryコンパチでES5の機能使いまくって高速にしたプロダクト
  • jQuery 1.9 に更新する際に注意すべき変更点の自分なりのまとめ | 私的なjQuery他

    jQuery Core 1.9 Upgrade Guide | jQuery の「Changes of Note in jQuery 1.9」を読んで、 自分なりにまとめました。 誤訳して間違ったことをまとめてたり、 最新の情報でないかもしれないので 読まれる際はご注意下さい。 (※ページをそのまま訳したわけではないと、思います) jQuery 1.9 では API の削除や 挙動の変更を行っています。 この記事は、前のバージョンから更新した時、 既存のコードに影響がでそうな変更を 並べたものになります。 変更点を全部網羅しているわけではありません。 箇条書きにすると以下のような感じ: 削除された機能 .toggle(function, function) の用法 jQuery.browser() .live()と.die() jQuery.sub() document 以外の要素での A

  • jquery-migrate.js で Deprecated なコードを通知する - わからん

    Rails プロジェクトで jQuery1.9 を使うことにしたので、jquery-migrate を導入して古い書き方が指摘されるようにしました。 ▼ Deprecated だと表示されている様子 ▼ application.html.erb <%= javascript_include_tag "application" %> <% if Rails.env.development? || Rails.env.staging? %> <%= javascript_include_tag "jquery-migrate-1.0.0b1.js" %> <% end %> 参考リンク jquery/jquery-migrate - GitHub jQuery 最新版で Deprecated になっている書き方を指摘するツールはないでしょうか - QA@IT

    vvakame
    vvakame 2013/02/04
    ほー。一回試すべきかな。
  • jQuery 1.9 の $.parseHTML とかその辺 - ほむらちゃほむほむ

    まえがき 2013/01/15 に jQuery 1.9 と 2.0 ベータがリリースされて,サポートブラウザがどうとか互換性がどうとかいうお話がちらほら出る中,jQuery 1.6.3 から続く jQuery('セレクタだと思ったら要素生成でこんにちはこんにちは') 問題 への対応に一応の終止符が打たれたのでいろいろ書いてみる. ver 1.6.2 以前 jQuery の 1.6.2 までは $(String) としたとき,「String になんか( HTML の)タグが入ってるっぽいぞ」と判断すると要素を生成し,そうじゃなければ CSS 的なセレクタとして振る舞うという機能がありました. 大抵の場合,大きな問題はなかったのですけども,ユーザ入力からセレクタを組み立てるときに問題になりました. とくに '#' を含んだ文字列で ID セレクタとして振舞わせようとするのが典型的で,なかでも

    jQuery 1.9 の $.parseHTML とかその辺 - ほむらちゃほむほむ
    vvakame
    vvakame 2013/01/30
    $(String) での要素生成処理に変更があったのでその受け皿でありセキュアさを狙ったものではない、ということかー。
  • Web Dev .NET: The Magic of the jQuery 1.9 Source Map

    Wednesday, January 16, 2013 The Magic of the jQuery 1.9 Source Map jQuery 1.9 Supports Source Maps You may have noticed that the 1.9 version of jQuery was released yesterday. One of the most excited pieces of the version is support for Source Maps! What are Source Maps? What is a Source Map? Well, it is a generic way to translate one script format into another. In jQuery's case, it is mapping t

    vvakame
    vvakame 2013/01/22
    うおぉほんとだSourceMap用の記述が下部に入ってる
  • jQuery Plugins

    The jQuery Plugin Registry is in read-only mode. New plugin releases will not be processed. We recommend moving to npm, using "jquery-plugin" as the keyword in your package.json. The npm blog has instructions for publishing your plugin to npm. Learning Center Forum Twitter IRC GitHub Copyright 2024 OpenJS Foundation and jQuery contributors. All rights reserved. See jQuery License for more informat

  • jQuery公式プラグイン・レジストリが公開。GitHubと連携など、今風の仕組みに惚れ惚れ

    白石 俊平 ニュース jquery 0 Comment 2013年1月17日、jQuery「公式」のプラグイン・レジストリ(プラグインの集積場)が公開されました! URLはこちらになります。 http://plugins.jquery.com/ このプラグイン・レジストリの目的は、従来のプラグインサイトでは解決できなかった、「断片化」と「配布」の問題を解決することだそうです。 「断片化」・・・「jQuery プラグインがWeb上の至る所にあり、探すのが面倒」という、現在の状況 「配布」・・・作成したプラグインを配布するためのサイト作成や宣伝に手間がかかる、従来のプラグインサイトでは登録が面倒だった 新しいプラグイン・レジストリは、GitHubと連携することを前提として、こうした問題をエレガントに解決し、従来のプラグインサイトを完全に置き換えるものです。 開発者にとっては、プラグインを公開

    vvakame
    vvakame 2013/01/17
    これは素晴らしい
  • jQuery 1.9のリリース候補版が公開。使用されなくなったAPIを整理し、jQuery 2.0と互換へ

    使っていないWebサイトの方が少数派となるほど人気のJavaScriptライブラリのjQuery。最新版となるバージョン1.9のリリース候補版「jQuery 1.9 RC1」が公開されました。 jQueryは現バージョンの1.8でモジュール構造を取り入れ、必要な機能のみを取り入れたライブラリを利用者がビルドできる環境を構築。そして今回の1.9では、ほとんど使われなくなった古いAPIを整理。バージョンアップによって肥大化した内部をクリーンな構造へと再構築しようとしています。 これは次のメジャーバージョンアップであるjQuery 2.0に備えた動きといえます。 jQuery 2.0では、jQuery 1.9とAPIの互換性を保つちつつInternet Explorer 6/7/8のサポートを廃止。より小さく速いライブラリとなる予定です。jQuery 2.0登場後も、Internet Explo

    jQuery 1.9のリリース候補版が公開。使用されなくなったAPIを整理し、jQuery 2.0と互換へ
  • jQuery Core 1.9 Upgrade Guide

    jQuery Core 1.9 Upgrade Guide Overview jQuery Migrate Plugin Changes of Note in jQuery 1.9 .toggle(function, function, ... ) removed jQuery.browser() removed .live() removed .die() removed jQuery.sub() removed .add() .addBack( selector ) replaces .andSelf() .after(), .before(), and .replaceWith() with disconnected nodes .appendTo, .insertBefore, .insertAfter, and .replaceAll Ajax events should be

    vvakame
    vvakame 2012/12/25
    結構変わるのか…
  • jQuery Core: Version 1.9 and Beyond | Official jQuery Blog

    Please check out the followup post before jumping to the wrong conclusion. As the last blog post discussed, jQuery version 1.8 is undergoing a spring cleaning to remove insecure, inefficient, ineffective, and inadvisable features. We’ve also begun the work to allow you to build custom versions that exclude parts of the library for even greater savings. Those efforts will make it possible for you t

  • GitHub - mleibman/SlickGrid: A lightning fast JavaScript grid/spreadsheet

    Welcome to SlickGrid Find documentation and examples in the wiki. UPDATE: March 5th, 2014 - I have too many things going on in my life right now to really give SlickGrid support and development the time and attention it deserves. I am not stopping it, but I will most likely be unresponsive for some time. Sorry. UPDATE: This repo hasn't been updated in a while. https://github.com/6pac/SlickGrid/wik

    GitHub - mleibman/SlickGrid: A lightning fast JavaScript grid/spreadsheet
    vvakame
    vvakame 2012/11/30
    数万件レコードでも高速にグリッド表示できる jQuery Plugin
  • jQuery.Deferredって何

    programming notes. mainly about JavaScript / jQuery. [@Takazudo] [takazudo@gmail.com] Hint: alt + / ※ このブログの内容は弊社が運営する有料サービス、CodeGridにてより詳しい内容をご参照いただけます(宣伝) jQuery deferredの使い方 - deferredの基 | CodeGrid === jQuery1.5から追加された機能。でも全然使ってないので調べた。 jQuery1.5からはdeferredオブジェクトっていうものが登場。 これは、「イケてるキュー(待ち行列)の仕組み~遅延もあるよ~」みたいなものです・・・ 説明がムズイけれどもなんかそんな感じなのです。今までは function fetch(callback){ doAjaxThings('somefile.js

    jQuery.Deferredって何
  • jQueryのbind/live/delegateの違いまとめ、と新API .on()の使い方 - y-kawazの日記

    jQueryのイベント記述方法はいくつかあり、大雑把におさらいしたのが以下の3パターンです。 まず一番基的なのが $("a").click(fn) や $("a").bind('click', fn) です。click(fn)はbind('click', fn)の省略形です。 次にjQuery1.3で $("a").live("click", fn) という機能が出来ました。liveの良いところはDOM操作で出たり消えたりするエレメントに対して再バインド無しでイベント定義ができる利便性と、内部的にはbind個所がdocumentの1か所になり複数個所へのbindが無くなることによるメモリ効率と実効速度の向上です。 更にjQuery1.4.2で $("#foo").delegate("a", "click", fn) という書き方が出来るようになりました。これは特定要素以下に限定するliv

    jQueryのbind/live/delegateの違いまとめ、と新API .on()の使い方 - y-kawazの日記
    vvakame
    vvakame 2012/09/21
    ぐらちゃんありがとう!
  • jQuery 1.7、1.8 で非推奨になったイベントのメソッドと Ajax 関連のメソッドとイベント - Sarabande.jp

    jQuery: 大半のブラウザにおいて ready は DOMContentLoaded を指すFunction.prototype.apply、bind と $.proxy の比較event.originalEvent、jQuery.event.props.push、jQuery.event.fixHooks について条件分岐からメソッドチェーンやマップによるコールバックにjQuery 1.7、1.8 で非推奨になったイベントのメソッドと Ajax 関連のメソッドとイベントメソッドチェーンもしくはプロパティ表記を使って複数のイベントハンドラを指定するホーバーで削除ボタンの表示をコントロールするmouseenter と mouseover のちがいjQuery のイベントメソッドのなかでの return false と e.preventDefault() のちがい9月1日追記: on メ

    jQuery 1.7、1.8 で非推奨になったイベントのメソッドと Ajax 関連のメソッドとイベント - Sarabande.jp
  • jQuery 1.8の更新内容をまとめたよ。 | Ginpen.com

    個人的に油断してたんですが、jQuery 1.8がリリースされましたね。 CSSのベンダープレフィックスを自動でほぼ補完してくれるようになったのが目玉機能でしょうか。作業量としては、セレクターエンジンSizzleとアニメーション関係を全面的に書き換えた事が大きそうです。なお諸々強化されているにも関わらず、ファイルサイズは減っています。(ちょっとだけどね。) えらい! jQuery Blog » jQuery 1.8 Released jQuery Blog » jQuery 1.8 Beta 1: See What’s Coming (and Going!) jQuery Blog » The New Sizzle jQuery Blog » jQuery Core: Version 1.9 and Beyond jQuery Blog » jQuery 1.9 and 2.0 — TL;

    jQuery 1.8の更新内容をまとめたよ。 | Ginpen.com
  • Ben Alman » jQuery hashchange event

    This jQuery plugin enables very basic bookmarkable #hash history via a cross-browser HTML5 window.onhashchange event. While this functionality was initially tied to the jQuery BBQ plugin, the event.special window.onhashchange functionality has now been broken out into a separate plugin for users who want just the basic event & back button support, without all the extra awesomeness that BBQ provide

    vvakame
    vvakame 2012/08/13
    おがわさんいわく "fragmentの変化をハンドルしたい場合は jquery.ba-hashchange プラグインを使うのが良い"
  • Livestamp.js - a simple, unobtrusive jQuery timeago plugin

    First thing's first: download the dependencies. You'll need jQuery (>= 1.7) and Moment.js (>= 1.7). Once you've got everything, put this somewhere in your page: <script src="jquery.js"></script> <script src="moment.js"></script> <script src="livestamp.js"></script> No extra JavaScript required! Just use a <span> with the data-livestamp attribute set to the desired Unix timestamp (in seconds), like

    vvakame
    vvakame 2012/08/10
    Unix Epochから a minute ago とかの表記に変換してくれるライブラリ