28 lines
No EOL
987 B
HTML
28 lines
No EOL
987 B
HTML
[(#REM)
|
|
|
|
Squelette Big_Pipe
|
|
http://www.facebook.com/notes/facebook-engineering/bigpipe-pipelining-web-pages-for-high-performance/389414033919
|
|
|
|
(c) 2010 Cedric Morin
|
|
Distribue sous licence GPL
|
|
|
|
]
|
|
#SET{bloc,#ENV{bloc}|dirname|basename}
|
|
<div id="zapl-#GET{bloc}" class="zapl-loading"><:zpip:zapl_loading:></div>
|
|
<script type="text/javascript">
|
|
var myurl = window.location + "";
|
|
myurl = myurl.split('#');
|
|
myurl = myurl[0] + ((myurl[0].indexOf("?")>0)?"&":"?") + "var_zajax=#GET{bloc}";
|
|
$.get(myurl, function(data) {
|
|
jQuery('document').ready(function(){
|
|
jQuery("#zapl-#GET{bloc}").replaceWith(data);
|
|
var h = window.location.hash;
|
|
if (h && jQuery("<div></div>").html(data).find(h).length>0) jQuery(h).positionner(true);
|
|
jQuery.spip.triggerAjaxLoad(document);
|
|
});
|
|
});
|
|
</script>
|
|
<noscript>
|
|
<meta http-equiv="refresh" content="2;url=<?php echo ($url=parametre_url(self(),'var_zapl','non'));?>" />
|
|
<a href="<?php echo $url ?>"><:zpip:zapl_reload_off:></a>
|
|
</noscript> |