Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
pjaxって #TechLunch
Search
Livesense Inc.
PRO
April 21, 2014
Technology
96
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
pjaxって #TechLunch
pjaxって
2013/09/18 (水) @ Livesense TechLunch
発表者:春日 太志
Livesense Inc.
PRO
April 21, 2014
Transcript
13 slides
pjaxってどうなの? 社内では悪い噂しか聞かないけど...
pjaxってなんなの? 使ったことないけど...
push state + ajax ブラウザ履歴操作 + 非同期通信
一時期 #! が議論されていた Ajax サイトをクロールするため
ajax 周りは library が よろしくやってくれるとして
None
←戻る window.history.back() window.history.go(-1) window.history.go(-2)
進む→ window.history.forward() window.history.go(1) window.history.go(2)
履歴数 window.history.length // 5だったら -4 〜 4 まで go() に指定できる
履歴に追加してURL更新 window.history.pushState({}, ‘title’, ‘/path’) // 第1引数は window.history.state や window.onpopstate の
イベントハンドラで取得できるオブジェクト。上限640KB。それ以 上は session storage や local storage を使用するのが推奨さ れる。なお、popstate イベントは「戻る」「進む」で発生。 // 第2引数はページタイトルを指定できる予定で今は無視される // 第3引数はURLパスで、別ドメイン指定や https 画面からの http 指定などは security error が発生。指定しない場合は現在 のURLパスになる。
None
履歴に残さずURL更新 window.history.replaceState({}, ‘title’, ‘/path’) // 引数は pushState() と同じ。 // 履歴に残らないので「戻る」「進む」できない画面になる
ブラウザ対応状況
More Decks by Livesense Inc.
See All by Livesense Inc.
新規商品の開発におけるAIの活用 〜挑戦は人間にしかできない〜
livesense
PRO
0
32
味覇で作るパスタが美味い - 20261001_yabaubuki.dev
livesense
PRO
0
200
Rubyはただの⾔語に⾮ず
livesense
PRO
0
610
28新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
180
27新卒_総合職採用_会社説明資料
livesense
PRO
0
7.8k
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
13k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
620
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
1
1.8k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
750
Other Decks in Technology
See All in Technology
Go初心者のクラウドエンジニアが、デプロイを通して旨味を知っていく話
ryudai
1
200
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
290
少ない人手 限られた予算 それでも守る 消せない・見つける・戻れる オールハザード型BCP on AWS / 20261107 Mitsutoshi Matsuo
shift_evolve
PRO
0
370
Where Should Platform Complexity Live? Lessons from a Cross-Team PR Preview Platform
taiki45
0
110
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
0
470
Active Directory と Entra ID のむむむな関係
murachiakira
PRO
4
1.8k
Kiro 入門 (1 つのエージェントを、どの画面からでも) | 目指せ Kiro マスター 01
inariku
PRO
6
1.7k
属人化したISMS運用をGitHubとAIで仕組み化した1年間の記録
sioncojp
4
2.6k
Shared Signals Framework 仕様解説
oidfj
0
430
Kiro を使うコツ (頼み方、覚えさせ方、任せ方) | 目指せ Kiro マスター 09
inariku
PRO
3
150
マネージャーをエスパーにしない マネジメントされる側から始める、働きやすい現場づくり
comi190327
0
250
田んぼの見回りをIoTで減らしたい!水位監視から電池駆動カメラまでの試行錯誤
itosoft
1
170
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
570
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
520
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Amusing Abliteration
ianozsvald
1
390
How to make the Groovebox
asonas
2
2.6k
Scaling GitHub
holman
464
140k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
GitHub's CSS Performance
jonrohan
1033
470k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
How to build a perfect <img>
jonoalderson
1
6.2k