Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter HTMX
#11

Ok, thanks. I guess it is not much of a problem in dev mode, except that potentially the email filters dislike javascript...
==

Donatas G.
Reply
#12

@michalsn Great demos! thanks for sharing that.
Reply
#13

(This post was last modified: 04-01-2023, 09:38 PM by SubrataJ.)

I would like to know if I want to push a script tag or link tag to the header or footer, what would be the way to do it using HTMX on hx-boost?
Learning Codeigniter 
Reply
#14

It states that they want the scripts in the <head> section.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#15

(04-02-2023, 11:29 PM)InsiteFX Wrote: It states that they want the scripts in the <head> section.

okay, If I do not want to load all the third-party  js or CSS files, since the js or CSS links will vary upon what page I am loading, in that case,  what would be a proper way to do it? 

or do I have to load all the CSS and JS files while loading a page?
Learning Codeigniter 
Reply
#16

JS Script files should be loaded at the end of the html document just before the ending </html> tag
unless the code is needed in the html document then it needs to be loaded in the <head> section.

Most of the time you can place the JS Scripts at the end of the html document for faster page loading.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB