Browse Source

Remove Bootstrap 4 / Popper 1 / FontAwesome from dashboard.php

Bootstrap 4.1.3 JS and Popper.js 1.14.3 were loaded alongside the
Bootstrap 5.3.1 bundle already present at the bottom of the page.
Both libraries initialised on the same page causing API conflicts
(Bootstrap 4 and 5 component JS is incompatible). Removed the v4
scripts and unused FontAwesome kit; Bootstrap 5 bundle and
Bootstrap Icons are sufficient.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Benjamin Harris 2 tuần trước cách đây
mục cha
commit
f5ae03a7a6
1 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 7
      dashboard.php

+ 1 - 7
dashboard.php

@@ -27,14 +27,8 @@ $not_required = "<i class='h2 bi bi-dash-circle-fill'></i>";
         <link href="css/print.css" rel="stylesheet" media="print">
 
 
+        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
         <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
-        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
-        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
-        <script type="text/javascript" src="https://use.fontawesome.com/1e2844bb90.js"></script>
-		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
-        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script>
-
-        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js" integrity="sha512-JZSo0h5TONFYmyLMqp8k4oPhuo6yNk9mHM+FY50aBjpypfofqtEWsAgRDQm94ImLCzSaHeqNvYuD9382CEn2zw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
 
     </head>
     <body>