How can show the file content to the users while the page still loading?
In short, handle it with javascript on the client side
mojolicious stream file -> The Advisory Boar: Mojolicious and HTTP streaming
my $res = `cat $file`;
99 times out of 100 you shouldn't do that, esp to slurp an entire file into memory ... which tends to take a lot of memory for large files
Crossposted at http://stackoverflow.com/questions/22780582/perl-mojolicious-render-large-text-file.
I cross-linked this cross-postings for maximum collaboration efficiency
In reply to Re: Mojolicious Render Large Text File ( How can show the file content to the users while the page still loading? )
by Anonymous Monk
in thread Mojolicious Render Large Text File
by iseif
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |