- Introduced PageLoadTimeController to measure and display page load times. - Moved the footer content into a partial for better code organization. - Added 'bullet' gem for performance monitoring. This commit enhances the application by providing useful information about load time directly in the UI and refactoring the layout code for maintainability.
25 lines
909 B
Plaintext
25 lines
909 B
Plaintext
<!-- 页脚 -->
|
|
<footer class="footer footer-center p-8 bg-base-200 text-base-content">
|
|
<div class="container mx-auto flex flex-col gap-2">
|
|
<div id="busuanzi_container" class="text-xs opacity-70">
|
|
<div class="space-x-2">
|
|
<span>Page Views: <span id="busuanzi_page_pv"></span></span>
|
|
<span>|</span>
|
|
<span>Page Visitors: <span id="busuanzi_page_uv"></span></span>
|
|
<span>|</span>
|
|
<span>Total Views: <span id="busuanzi_site_pv"></span></span>
|
|
<span>|</span>
|
|
<span>Total Visitors: <span id="busuanzi_site_uv"></span></span>
|
|
<span>|</span>
|
|
<span data-controller="page-load-time">
|
|
Page Load Time: <span data-page-load-time-target="timer">x</span> ms
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="font-display opacity-80">
|
|
Copyright © 2024 - All rights reserved by AI Weather Art
|
|
</p>
|
|
</div>
|
|
</footer>
|