Announcement

Collapse
No announcement yet.

JS in Custom field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    JS in Custom field

    A client placed some fairly intricate JS/Ajax in a category custom field. The script loads some XML data. It works. It's slow. I haven't seen this technique before. Although I've placed JS in a content item, so it kinda feels like the same thing. Would that be faster than a custom field?

    Any other issues with using this technique?

    Scott
    What help do you need today!
    Interactive Design Solutions http://www.southbound.com
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    My T-shirt Collection is mostly MivaCon T-shirts!!
    Competitive Rates, Popular Modules, and Integrations:
    Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

    #2
    I would put all JS in "CSS/JavaScript Resources" so it can be called into pages as needed, from a central location, and have an SRI hash generated and assigned for security.
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment

    Working...
    X