Sometimes when I can’t find the way of deactivating a function or any other elements with PHP, specially in PHP frameworks and PHP CMSs, I just do display: none, I wonder if this will cause me many problems in the future or is a necessary method?
Sometimes when I can’t find the way of deactivating a function or any other
Share
It depends on what kinds of elements they are.
Possible problems that come to mind are:
imgtag or some other tag pointing to an external resource: it will be loaded neverthelessiframetags – the embedded page will be loaded even whendisplay: noneis setother than these special cases, it will probably not be a problem.