Smarter Links With jQuery: Catch404
25
Jul
// php the_time('Y') ?>
Within time, links on our websites can become invalid as the URLs they point may not be existing any more.
Catch404 is a jQuery plugin which adds a layer between the web page and the link to detect this issue with the process:
- when a link is clicked, it sends a request to the page
- if a 404 message is returned, displays a modal box mentioning that the page does not exist. Else, redirects to the URL.
It has pros and cons like adding an extra request to links which ends up in a slower browsing experience but prevents redirecting readers to non-existing pages.
The plugin does not require any scripting language as the query is sent via Ajax to the Yahoo YQL (which is mostly the reason of the slower experience).
Requirements: jQuery
Website: http://addyosmani.com/blog/catch404/
Demo: http://www.addyosmani.com/resources/catch404/catch40...
Website: http://addyosmani.com/blog/catch404/
Demo: http://www.addyosmani.com/resources/catch404/catch40...
- Tags:
404 Javascript
- Filed under: Browsing, Goodies, Other License
- 0 Comments
Leave a reply












