I have a React Server Side Rendering App. There's a performance issue when images are to be displayed on the page. For an image to be displayed, there's a network call for the image from the server and then it's displayed on screen. For larger images, it takes a while to load the image which is very evident. Is there a way once the request is made to the server and the image is received as response to have the image stored locally and use the locally stored image when needed again without making a network request. I couldn't find any good resource to help me through this one, it would be of great help if you could help me with this one or even point me to a reference!
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
i'm trying to display data from the database in the admin dashboard i used this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count(); echo $users; ?> and i have successfully get the correct data from the database but what if i want to display a specific data for example in this user table there is "usertype" that specify if the user is normal user or admin i want to user the same code above but to display a specific usertype i tried this: <?php use Illuminate\Support\Facades\DB; $users = DB::table('users')->count()->WHERE usertype =admin; echo $users; ?> but it didn't work, what am i doing wrong? source https://stackoverflow.com/questions/68199726/how-to-show-number-of-registered-users-in-laravel-based-on-usertype
Comments
Post a Comment