Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

Disable loading 'woo-price-calculator' scripts on all pages, only on Calc page..

More
4 months 1 week ago #1595 by Enrico
Enrico replied the topic: Disable loading 'woo-price-calculator' scripts on all pages, only on Calc page..
Hi,

I would like also to introduce myself: I'm the developer of the plugin (If you check every single file is commented by me), I have a degree in computer engineering and I work for the web as long as can remember (That's mean some decades).

About your question: If it works to you, doesn't mean it works for the others. WooPrice Calculator is a plugin used by thousands of people, changing a simple little thing as you said, means thousands of problems for us.

We also have only one version of the plugin (trunk in engineering terms), and we can't create branches (Different versions of the software).

As I said (As engineer): hundreds of our customers can use the "Custom CSS" in other pages, and also dependencies of the plugin could be used in other pages (Like the other plugins do).

I'm wondering If you have disabled your scripts and css files on all pages as a test, why don't you do the same thing in the production?

I gave to you also very important information to speed up your website: Something that is not about WPC and I should not have interest to do.

As my previous post, the only think I can do which is included in the support for you is to minify the CSS and JS code.

Kind Regards,
AT447
Enrico

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #1592 by Don Misquitta
Don Misquitta replied the topic: Disable loading 'woo-price-calculator' scripts on all pages, only on Calc page..
Enrico, I am a professional web developer.
I have disabled your scripts and css files on all pages as a test on my site, except for the product pages and the cart and checkout pages.

Everything works fine.

I am not loading 13 scripts and files of your plugin on all pages of my site.

Please find a solution to load these pages only on pages that are required, and not on all pages. Thank you.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #1585 by Enrico
Enrico replied the topic: Disable loading 'woo-price-calculator' scripts on all pages, only on Calc page..
Hi,

Most of these script and css are not used only on the product page: some of them are also used in the cart and some of them are also used in the whole website (for example the custom-css where you can apply a custom css in different page of you website).

Limiting the page where they should be executed can cause some mulfuction (Anyway we are talking about of really small KBs of data).

I've checked your website, and there are CSS and JS that takes really more time.

You should also investigate on your plugins because the time from the request to page show is 10.39 sec ( Which is a lot! ).
Also you have a "notfound/" which takes 6.55 sec and a style.scss which takes 5.18 sec ( Which is other 13 sec! ).

What we can do is to minify (compress) the JS and CSS trying to save other KBs of data.

We can then send you a bugfix version. Anyway this could take some time.

Kind Regards,
Enrico

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #1564 by Don Misquitta
Don Misquitta created the topic: Disable loading 'woo-price-calculator' scripts on all pages, only on Calc page..
Your plugin loads all these stylesheets and scripts on all of the pages of my Wordpress/WooCommerce website.

I do not want to have these scripts load on all pages except the product pages where the WooPrice Calculator is actually used.

We purchased this plugin and the plugin works great, except for this issue. Please show me a way to stop all these scripts from loading on every page to make the site load faster.

Thanks, Don.
<link rel='stylesheet' id='woo-price-calculator-datetimepicker-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/lib/datetimepicker-2.5.4/jquery.datetimepicker.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='woocommerce-pricesimulator-main-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/css/main.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='remodal-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/lib/remodal-1.0.7/src/remodal.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='remodal-default-theme-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/lib/remodal-1.0.7/src/remodal-wpc-theme.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='tooltipstercss-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/css/tooltipster.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='tooltipster-shadow-css'  href='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/css/tooltipster-shadow.css?ver=4.9.6' type='text/css' media='all' />
<link rel='stylesheet' id='awspricecalculator-custom-css'  href='https://caisafety.com/wp-content/uploads/woo-price-calculator/style/custom.css?ver=4.9.6' type='text/css' media='all' />
<script type='text/javascript' src='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/js/jquery.numeric.min.js?ver=4.9.6'></script>
<script type='text/javascript' src='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/lib/datetimepicker-2.5.4/build/jquery.datetimepicker.full.js?ver=2.5.4'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var WPC_HANDLE_SCRIPT = {"siteurl":"https:\/\/caisafety.com","resources_url":"https:\/\/caisafety.com\/wp-content\/plugins\/woo-price-calculator\/admin\/resources\/","target_platform":"wordpress","target_ecommerce":"woocommerce","is_cart":"0","ajax_url":"https:\/\/caisafety.com\/wp-admin\/admin-ajax.php?task=price_callback&action=awspricecalculator_ajax_callback","single_product_ajax_hook_class":""};
/* ]]> */
</script>
<script type='text/javascript' src='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/js/main.js?ver=4.9.6'></script>
<script type='text/javascript' src='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/lib/remodal-1.0.7/src/remodal.js?ver=2.5.4'></script>
<script type='text/javascript' src='https://caisafety.com/wp-content/plugins/woo-price-calculator/admin/resources/assets/js/jquery.tooltipster.min.js?ver=3.2.6'></script>
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.170 seconds

Cart

Total : 0.00 €