Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary query and CSS load entire site #49

Open
congtoan opened this issue Nov 20, 2023 · 1 comment
Open

Unnecessary query and CSS load entire site #49

congtoan opened this issue Nov 20, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@congtoan
Copy link

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.

@markusbegerow markusbegerow added the enhancement New feature or request label Dec 20, 2023
@markusbegerow markusbegerow self-assigned this Dec 20, 2023
@markusbegerow
Copy link
Owner

Hello @congtoan,

that's possbile to optimize, but i will take a low priority on that point, because at the moment it's important to export/import the quizzes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants