By Richard Fontaine on Friday, 15 April 2022
Posted in Technical Issues
Replies 3
Likes 0
Views 732
Votes 0
Hi,
On some pages I would like to prevent the loading of basic.min.js and amis swiper.js.
Could you please tell me if there is a way to do that or where these files are loaded in your code so that I can override myself.
This is for your latest job day blog version

Regards
Hi Richard,

I am not entirely sure why you want to do that, but you can find the code below.

1. Basic.min.js - administrator/components/com_easyblog/includes/scripts/scripts.php @line 141 ~ 143
2. swiper.js - It is being called from basic.min.js itself.

Hope these help.
·
Friday, 15 April 2022 10:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.
The reason is that easyblog scripts and stylesheets are loaded even on pages where there is no easyblog.
I want to remove these scripts so they don't increase page load time.
Richard
·
Friday, 15 April 2022 14:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, I see. Technically, the script will not be loaded unless there is some sort of EasyBlog element being loaded onto the page, eg: EasyBlog module.

Nevertheless, hope my replies above will be able to help you out.
·
Friday, 15 April 2022 16:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post