wp-adv-quiz icon indicating copy to clipboard operation
wp-adv-quiz copied to clipboard

Unnecessary query and CSS load entire site

Open congtoan opened this issue 8 months ago • 1 comments

I have several quiz on some page in my site. It works very well. I wanted to discuss a potential optimization for this plugin that could significantly improve performance.

The current plugin behavior loads additional CSS (css/wpAdvQuiz_front.min.css) and conducts database queries (in snapshot attachment) across the entire site, even on pages without the quiz shortcode. To enhance efficiency, could the plugin be modified to load these resources conditionally, specifically on pages where the quiz shortcode is present?

2023-11-20_15-35-24

Implementing this conditional loading feature would streamline resource usage, optimizing performance by focusing resources solely on pages where the quiz feature is utilized.

congtoan avatar Nov 20 '23 08:11 congtoan