When you start getting a lot of documents, this will slow down the entire
process. We found that with 75,000 documents, it would take almost 20 seconds
to load each page.
Another alternative is to use the display attribute of CSS. We wrap this style
around the view and have another line containing the string to display if no
docs are found (again with the style wrapped around it). both are hidden to
start. Then using JavaScript, we search the view for the string No documents
found. If it is there, we un-hide the message otherwise we un-hide the view.
When you start getting a lot of documents, this will slow down the entire process. We found that with 75,000 documents, it would take almost 20 seconds to load each page.
Another alternative is to use the display attribute of CSS. We wrap this style around the view and have another line containing the string to display if no docs are found (again with the style wrapped around it). both are hidden to start. Then using JavaScript, we search the view for the string No documents found. If it is there, we un-hide the message otherwise we un-hide the view.