creativetimofficial / ct-material-dashboard-pro

Material Dashboard Pro - Premium Bootstrap 5 Admin
https://demos.creative-tim.com/material-dashboard-pro/pages/dashboards/analytics
117 stars 28 forks source link

Only load scripts if they are needed #186

Closed LarsGMortensen closed 6 years ago

LarsGMortensen commented 6 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

I would expect the theme to only load (plugin) scripts when they are needed.

It could be done with the method depicted in the attached .txt suggestion-for-only-loading-scripts-as-needed.txt

Current Behavior

It loads all scripts on all pages. Totally unnecessary and potentially this will create conflicts.

groovemen commented 6 years ago

Hello @LarsGMortensen,

Thank you for using our products, we will clean the extra scripts that are unnecessary in the next product update. Best, Stefan